lundi 4 janvier 2016

Application.instanceInitializer is not a function

   <!DOCTYPE html>
        <html>
           <head>
              <title>Ember.js Application example</title>
              <!-- CDN's -->
              <script src="http://ift.tt/1H1Z8nj"></script>
              <script src="http://ift.tt/13wBVXk"></script>
              <script src="http://ift.tt/1H1Z8Uo"></script>
              <script src="http://ift.tt/1LNmMn9"></script>
              <script src="http://ift.tt/1H1Z8nl"></script>
              <script src="http://ift.tt/1e1uqGJ"></script>
           </head>
           <body>
              <!-- Your JavaScript -->
              <script type="text/x-handlebars">
                 <!-- this is default application template -->
                  <h1>{{App.name}}</h1>
                  {{outlet}}
              </script>

              <script type="text/javascript">
                 //App is the object of the Ember.Application
                 //create() is the constructor of the Ember.Application
                 App = Ember.Application.create();
                 //App.name is the variable that holds the string values
                 App.name= "Hello... Welcome to TutorialsPoint";
              </script>
           </body>
        </html>

I ran this.But Application.instanceInitializer is not a function in ember-initializer.js how solve this error? strong text




Aucun commentaire:

Enregistrer un commentaire