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

ember-reactive-helpers

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-reactive-helpers

Collection of helpers to aid in reactive template programming with Ember.js

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

ember-reactive-helpers

Build Status npm version Dependency Status

Collection of helpers to aid in reactive template programming with Ember.js.

Helpers

(helper 'helperName')

Returns helper as a function.

{{#with (action (helper 'contains') (array 'foo' 'bar')) as |checkContains|}}
  {{compute (checkContains 'foo')}}
{{/with}}

(transition-to 'destination' model (query-params foo='bar'))

(transition-to) helper the same argument signature as link-to but evaluates to an action that can be called to trigger transition.

<button {{action (transtion-to 'index')}}>Go to Index</button>

{{shhh anything}}

{{shhh helper will supress any output that's passed into it. This is useful when you want to compute a helper without having it's output rendered.

(r/debugger)

(r/debugger) will create a helper that will inject a debugger breakpoint into a helper pipe. It will pass through the value, that's passed into the helper.

<button {{action (pipe (some-helper) (r/debugger) (some-other-helper))}}>Do!</button>

(r/log ['your message'])

(r/log) helper will evaluate to a function. When called, this function will log the passed in messsage and arguments that it received.

<button {{action (pipe (r/log 'before save') (action 'save') (r/log 'after save')) model}}>Save</button>

(r/get propName)

(r/get) helper returns a function. When called, the function will return value taken from object that it receives as first argument at property propName.

{{compute (r/get 'animal') (hash animal='cat')}} {{! //=> cat }}

(r/param [index])

(r/param) return a function. When called, this function will return received argument at specified index.

{{compute (r/param) 'hello' 'world'}} {{! //=> 'hello'}}
{{compute (r/param 1) 'hello' 'world'}} {{! //=> 'world'}}

Installation

ember install ember-reactive-helpers

Looking for help?

If it is a bug please open an issue on GitHub.

Usage

Keywords

FAQs

Package last updated on 19 Jul 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

  • 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