I am embarking on the journey of creating a Cordova app with Framework7 as my UI framework. My goal is to adopt inline pages as the architectural layout, but I am encountering an error in the console during project setup:
An error message of "Uncaught TypeError: myApp.addView is not a function" pops up.
This error seems to be related to the configuration code snippet below:
// Initialize your app
var myApp = new Framework7({
animateNavBackIcon:true
});
// Export selectors engine
var $$ = Dom7;
// Add main View
var mainView = myApp.addView('.view-main', {
// Enable dynamic Navbar
dynamicNavbar: true,
// Enable Dom Cache so we can use all inline pages
domCache: true
});
I am curious if anyone can shed light on the cause of this issue and provide guidance on how to rectify it. Moreover, I am on the lookout for a functional template or code snippet for a Framework7 inline pages app, as my current setup appears to be malfunctioning.
Cheers