New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@lithiumjs/ionic

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lithiumjs/ionic

Reactive Ionic lifecycle extensions for @lithiumjs/angular.

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

Lithium for Ionic (@lithiumjs/ionic)

Reactive Ionic navigation lifecycle extensions for @lithiumjs/angular.

Installation

Lithium for Ionic depends on Lithium for Angular. Both can be installed via npm using the following command:

npm install @lithiumjs/angular @lithiumjs/ionic

Example

@Component({...})
class IonicPage {

    @ViewDidEnter() private viewDidEnter$: Observable<void>;

    constructor () {
        this.viewDidEnter$.subscribe(() => console.log("View was entered."));
    }
}

API

Ionic NavController Lifecycle EventSource decorators

These decorators create observables for all Ionic navigation lifecycle events:

ViewDidLoad

function ViewDidLoad(options?: EventSource.DecoratorOptions, ...methodDecorators: MethodDecorator[]): PropertyDecorator

See EventSource.

ViewWillEnter

function ViewWillEnter(options?: EventSource.DecoratorOptions, ...methodDecorators: MethodDecorator[]): PropertyDecorator

See EventSource.

ViewDidEnter

function ViewDidEnter(options?: EventSource.DecoratorOptions, ...methodDecorators: MethodDecorator[]): PropertyDecorator

See EventSource.

ViewWillLeave

function ViewWillLeave(options?: EventSource.DecoratorOptions, ...methodDecorators: MethodDecorator[]): PropertyDecorator

See EventSource.

ViewDidLeave

function ViewDidLeave(options?: EventSource.DecoratorOptions, ...methodDecorators: MethodDecorator[]): PropertyDecorator

See EventSource.

ViewWillUnload

function ViewWillUnload(options?: EventSource.DecoratorOptions, ...methodDecorators: MethodDecorator[]): PropertyDecorator

See EventSource.

Keywords

lithium

FAQs

Package last updated on 21 Sep 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