How to use the nativescript-vue.config function in nativescript-vue

To help you get started, we’ve selected a few nativescript-vue examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aaronksaunders / ns-vue-tabs-auth / src / main.js View on Github external
import Vue from "nativescript-vue";

import router from "./router";

import store from "./store";

import "./styles.scss";

// Uncommment the following to see NativeScript-Vue output logs
Vue.config.silent = false;

console.log(store.state);
store.dispatch("auth/init").then(user => {
  if (user) {
    router.replace("home");
  } else {
    router.replace("login");
  }
});

new Vue({
  router,
  store,
  template: `
  
github triniwiz / nativescript-pusher / demo-vue / app / main.ts View on Github external
TNSPusherBeams.addDeviceInterest('debug-hello');
  TNSPusherBeams.addDeviceInterest('hello');
  console.log(TNSPusherBeams.getDeviceInterests());
  TNSPusherBeams.clearDeviceInterests();
  setTimeout(() => {
    TNSPusherBeams.addDeviceInterest('debug-hello');
    TNSPusherBeams.addDeviceInterest('hello');
    TNSPusherBeams.addDeviceInterest('osei');
  }, 5000);
  // TNSPusherBeams.addOnMessageReceivedCallback(message => {
  //   console.log('message', message);
  // });
});

// Prints Vue logs when --env.production is *NOT* set while building
Vue.config.silent = TNS_ENV === 'production';

new Vue({
  render: h => h('frame', [h(App)])
}).$start();
github nativescript-vue / nativescript-vue / samples / app / app-to-check-android-events.js View on Github external
const Vue = require('nativescript-vue')
const application = require('tns-core-modules/application')
const platform = require('tns-core-modules/platform')

Vue.config.silent = false
Vue.config.debug = true

new Vue({
  template: `
    
      
        
        
          <label>
          
            
              <label>
            </label>
          
          
            <label></label></label>
github nativescript-vue / nativescript-vue / samples / app / 445.js View on Github external
const Vue = require('nativescript-vue')

Vue.config.debug = true
Vue.config.silent = false

new Vue({
  components: {
    ComponentWithSlot: {
      data() {
        return {
          counter: 0
        }
      },
      template: `
        
            

            <button>
        
      `</button>
github nativescript-vue / nativescript-vue / samples / app / 272.js View on Github external
const Vue = require('nativescript-vue')

Vue.config.debug = true
Vue.config.silent = false

class User {
  constructor(name) {
    this.name = name.toUpperCase()
  }
}

new Vue({
  template: `
  
    
      
      
        
github NativeScript / nativescript-app-templates / packages / template-master-detail-vue / app / app.js View on Github external
import firebase from "nativescript-plugin-firebase";
import config from "./shared/firebase-config";

import Vue from "nativescript-vue";

import RadListView from "nativescript-ui-listview/vue";

Vue.use(RadListView);

Vue.config.silent = (TNS_ENV === 'production');

import cars from "./shared/cars/car-service";

import CarList from "./components/CarList";
import CarDetails from "./components/CarDetails";
import CarDetailsEdit from "./components/CarDetailsEdit";

new Vue({

    template: `
        
            
        `,

    components: {
        CarList,
github nativescript-vue / nativescript-vue / samples / app / app-with-shared-actionbar.js View on Github external
const Vue = require('nativescript-vue')
const VueDevtools = require('nativescript-vue-devtools')

Vue.use(VueDevtools)

Vue.config.silent = false
Vue.config.debug = true

let id = 1

const page = name =&gt; ({
  template: `
    
        
            <label>
        </label>
    
  `
})

new Vue({
  template: `
github nativescript-vue / nativescript-vue / samples / app / app-with-radsidedrawer-tabs-and-router.js View on Github external
const Vue = require('nativescript-vue')
const VueRouter = require('vue-router')
const application = require('tns-core-modules/application')

Vue.registerElement(
  'RadSideDrawer',
  () =&gt; require('nativescript-ui-sidedrawer').RadSideDrawer
)

Vue.config.silent = false
Vue.config.debug = true
Vue.use(VueRouter)

const Home = {
  template: `
    
      <label>
    </label>
  `
}

const Tabs = {
  template: `
    
github nativescript-vue / nativescript-vue / samples / app / app-with-frames.js View on Github external
const Vue = require('nativescript-vue')

Vue.config.silent = false
Vue.config.debug = true

new Vue({
  data() {
    return {
      a: true
    }
  },
  template: `
    
      
        
          
            <label>
            <button>
          
        </button></label>
github nativescript-vue / nativescript-vue / samples / app / 536.js View on Github external
import Vue from 'nativescript-vue'

Vue.config.debug = true
Vue.config.silent = false

const Step2 = {
  template: `
    
      

      
        <label>

        <button>
      
    
  `,
  methods: {
    prevStep() {</button></label>