Hello All!
I installed latest v2.0.2 and try test page like in Docs (copied from “Basic Android/Material App Layout”)
In my-init.js I have (like in Docs):
var myApp = new Framework7();
// If we need to use custom DOM library, let’s save it to $$ variable:
var $$ = Dom7;
// Add view
var mainView = myApp.addView(’.view-main’, {
// Because we want to use dynamic navbar, we need to enable it for this view:
dynamicNavbar: true
});
But in console I have error:
Uncaught TypeError: myApp.addView is not a function
What is wrong?
Thank you