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-cli-visible
Advanced tools
An addon to help with visibility states of your app, like if your tab and window are visible or not.
This is an ember-cli addon that helps you deal with whether or not your application is currently visible to the user or not. For instance, whether the user is on another tab or has blurred the browser entirely.
Just install in your app, and then controllers and routes can access the two main ways of interacting with this plugin: this.visible.now
(boolean) and this.visible.state
(string repsonse). E.g.
import Ember from 'ember';
export default Ember.Controller.extend({
showNotifications: function() {
return this.visible.now && this.get("settings.notify");
}.property("visible.now"),
});
You can also use this.visible.state
to get the current state of visibility.
Either visible
, hidden
, blur
, or init
(rarely).
ember install:addon ember-cli-visible
ember server
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
FAQs
An addon to help with visibility states of your app, like if your tab and window are visible or not.
The npm package ember-cli-visible receives a total of 0 weekly downloads. As such, ember-cli-visible popularity was classified as not popular.
We found that ember-cli-visible demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.