Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please update the Hello World example and include more usage examples as well #173

Open
kristianmandrup opened this issue Sep 11, 2014 · 0 comments

Comments

@kristianmandrup
Copy link

Currently it contains this:

Register Bootstrap for Ember components [I DONT THINK WE NEED THIS ANYMORE?]

Open app.js and change:

App = Ember.Application.create();

TO:

`App = Ember.Application.createWithMixins(Bootstrap);``

However, using ember cli (recommended), creates an app.js file like this:

import Ember from 'ember';
import Resolver from 'ember/resolver';
import loadInitializers from 'ember/load-initializers';

Ember.MODEL_FACTORY_INJECTIONS = true;

var App = Ember.Application.extend({
  modulePrefix: 'demo-app', // TODO: loaded via config
  Resolver: Resolver
});

loadInitializers(App, 'demo-app');

export default App;

and in index.html the App object is created

    <script>
      window.DemoApp = require('demo-app/app')['default'].create(DemoAppENV.APP);
    </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant