Skip to content

Please document and make it easier to use the Showcase example #174

@kristianmandrup

Description

@kristianmandrup

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... :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions