Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
ember-simple-track-helper
Advanced tools
A tiny helper to make small pieces of tracked state in templates.
Useful for scenarios where the only reason to have a backing class is to host some single piece of tracked state—for example, whether to show or hide a modal, with a default state of false
:
{{#let (track false) as |toggle|}}
{{#unless toggle.value}}
<button {{on "click" (fn toggle.update true)}}>Show it!</button>
{{/unless}}
<MyModal
@isShowing={{toggle.value}}
@onClose={{fn toggle.update false}}
/>
{{/let}}
(For folks from outside Ember: it's just like useState
, but via autotracking.)
This project follows the current draft of the Semantic Versioning for TypeScript Types proposal.
-private
module are publicember install ember-simple-track-helper
See the Contributing guide for details.
This project is licensed under the MIT License.
1.0.0 (2021-05-26)
FAQs
A tiny helper to make small pieces of tracked state in Ember templates.
The npm package ember-simple-track-helper receives a total of 227 weekly downloads. As such, ember-simple-track-helper popularity was classified as not popular.
We found that ember-simple-track-helper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.