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... :)
Trying to understand the Showcase example...
Looks like it's not using the
createWithMixinsmethod forBootstrapbut just defining it onwindowAnd...
As I understand it,
window.Bootstrapis simply made available as a namespace for components like thisI think I see the light... :)