0.1.5 • Published 8 years ago

ember-dataview v0.1.5

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Ember-dataview

Introduces the concept of dataviews (inspired by what the couchdb guys are doing).

Dataviews have a store and can be composed of other dataviews

note: this is alpha software!

Why?

Because my route files were getting bloated

declare dataviews in their own directory dataviews/dashboard.coffee

DashboardDataview = Dataview.extend
  childViews: ["someOtherView", "anotherView"]
  loads:
    user: (opts) ->
      @store.findRecord "user", opts.id
    fields: (opts) ->
      # load fields

Use in the routes routes/dashboard.coffee

Route.extend
  model: ->
    @dataviews.eagerLoad "dashboard",
      routeAction: @get "routeAction"
      routeName: @get "routeName"

eagerLoad forces your entire dataview tree, while the counterpart lazyLoad just loads the head node

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago