Skip to content

Instantly share code, notes, and snippets.

@ZenCocoon
Created April 16, 2013 00:51
Show Gist options
  • Save ZenCocoon/5392525 to your computer and use it in GitHub Desktop.
Save ZenCocoon/5392525 to your computer and use it in GitHub Desktop.
Test Bootstrap.Tabs from Ember Bootstrap
App.Example = DS.Model.extend
name: DS.attr 'string'
App.ExamplesController = Ember.ArrayController.extend()
App.Router.map ->
@resource 'examples', ->
@resource 'example', path: ':example_id'
App.ExamplesRoute = Ember.Route.extend
model: ->
App.Example.find()
// Inside the template `examples.handlebars`
{{view Bs.Tabs contentBinding="controller" itemTitleKey="name" itemValueKey="id"}}
App.Example.FIXTURES = [
{ id: 1
name: 'Test 1' },
{ id: 2
name: 'Test 2' }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment