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 document and make it easier to use the Showcase example #174

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

Comments

@kristianmandrup
Copy link

Trying to understand the Showcase example...

Looks like it's not using the createWithMixins method for Bootstrap but just defining it on window

// init.coffee
Bootstrap = window.Bootstrap = Ember.Namespace.create()

And...

// showcase.coffee
Bootstrap = window.Bootstrap
Showcase = window.Showcase = Ember.Application.create(
    LOG_TRANSITIONS: true
    LOG_VIEW_LOOKUPS: true
    LOG_ACTIVE_GENERATION: true
)

As I understand it, window.Bootstrap is simply made available as a namespace for components like this

Bootstrap.BsAlertComponent = Ember.Component.extend(Bootstrap.TypeSupport,
  // ...
);

// register with handlebars :)
Ember.Handlebars.helper 'bs-alert', Bootstrap.BsAlertComponent

I think I see the light... :)

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