How to use the framework7/framework7.esm.bundle.js.use function in framework7

To help you get started, we’ve selected a few framework7 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 BelinChung / HiApp / src / main.js View on Github external
// Import App Component
import App from './app'

// Import Vuex store
import store from './store'
import { getLoginUser } from './store/actions'

// import network framework
import './network'

// import i18n support
import i18n from './i18n'

// Init F7 Vue Plugin
Framework7.use(Framework7Vue)

// Init App
new Vue({
  el: '#app',
  store,
  i18n,
  template: '',
  // Register App Component
  components: {
    app: App
  }
})

getLoginUser(store)
github phonegap / phonegap-template-vue-f7-split-panel / template / src / main.js View on Github external
// Import Icons and App Custom Styles
import IconsStyles from './css/icons.css';
import AppStyles from './css/app.css';

// Import Routes
import Routes from './routes.js';

// Import App Component
import App from './app';

// Set up some useful globals
window.isMaterial = !Framework7.device.ios;
window.isiOS = Framework7.device.ios;

// Init F7 Vue Plugin
Framework7.use(Framework7Vue);

// Init App
const baseApp = new Vue({
  el: '#app',
  template: '',
  // Register App Component
  components: {
    app: App
  }
});
github framework7io / framework7-template-vue-webpack / src / app.js View on Github external
// Import F7 Vue Plugin
import Framework7Vue from 'framework7-vue/framework7-vue.esm.bundle.js';

// Import F7 Styles
import 'framework7/css/framework7.bundle.css';

// Import Icons and App Custom Styles
import IconsStyles from './css/icons.css';
import AppStyles from './css/app.css';

// Import App Component
import App from './app.vue';

// Init F7 Vue Plugin
Framework7.use(Framework7Vue)

// Init App
new Vue({
  el: '#app',
  template: '',

  // Register App Component
  components: {
    app: App
  }
});