Skip to content

Instantly share code, notes, and snippets.

@ridhof
Created February 23, 2019 09:12
Show Gist options
  • Save ridhof/b45dfc0d2a77e167d7abb0df5b787979 to your computer and use it in GitHub Desktop.
Save ridhof/b45dfc0d2a77e167d7abb0df5b787979 to your computer and use it in GitHub Desktop.
var app = new Framework7({
// App root element
root: '#app',
// App Name
name: 'My App',
// App id
id: 'com.myapp.test',
// Enable swipe panel
panel: {
swipe: 'left',
},
// Add default routes
routes: [
{
path: '/about/',
url: 'about.html',
},
],
// ... other parameters
});
var mainView = app.views.create('.view-main');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment