Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-tardy-params

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-tardy-params

The default blueprint for ember-cli addons.

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ember-tardy-params

Bind on-the-fly query parameters to your models

About

It is not possible to dynamically add new query parameters after the model hook has completed. This addon helps make it possible to manage individual model state in the URL. In our case, we needed to rely on models to manage map layers and layer state. We also wanted the presence of those layer models to handle the query parameters out-of-the-box.

This simple addon creates a new HistoryLocation object.

Usage

environment.js

locationType: 'tardy-params',

route.js

  // snip...

  model() {
    return this.store.findAll('map-layer');
  },

  afterModel({ models }, { queryParams }) {
    const tardyParams = getOwner(this).lookup('location:tardy-params');
    tardyParams.setupQueryParamModels(models, queryParams);
  }

  // snip...

Keywords

FAQs

Package last updated on 23 Aug 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc