Socket
Book a DemoInstallSign in
Socket

ember-dataview

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-dataview

Introduces a dataview object and service which are like controllers except they exclusively handle data loading

0.1.5
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

  • ember server
  • Visit your app at http://localhost:4200.

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/.

Keywords

ember-addon

FAQs

Package last updated on 25 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.