Socket
Book a DemoInstallSign in
Socket

ember-radio

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-radio

Simple notification service for emberjs.

1.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

CI

ember-radio

Simple notification service for emberjs (no styling, no extra libs).

Compatibility

  • Ember.js v3.24 or above
  • Ember CLI v3.24 or above
  • Node.js v12 or above

Installation

ember install ember-radio

Usage

First of all add component to your template (application.hbs).

<RadioSpeaker @duration={{5000}} as |Radio|>

...some markup...

{{#each Radio.messages as |message|}}
    <Radio.Message @message={{message}} />
{{/each}}

...some markup...

</RadioSpeaker>

Radio - is an object with <Message /> component and messages list array.

You can push messages to the service with:

import { inject as service } from '@ember/service';

export default class SomeComponent extends Component {
    @service radio;

    @action
    someAction() {
        this.radio.send({
            type: 'info',
            text: 'You are my hero!'
        });
    }
    ...

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Keywords

ember-addon

FAQs

Package last updated on 10 Jul 2022

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.