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

ionic-lifecycle-interface

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ionic-lifecycle-interface

Provides basic TypeScript interfaces for the lifecycles of an Ionic 2+ page

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

ionic-lifecycle-interface

ionic-lifecycle-interface is a package for using the Ionic Framework.

How To Install

$ npm i --save ionic-lifecycle-interface

How To Use

  • install the package
  • import the package to directory
  • add implements <name of interface minus ion>
  • add to the class

Example

import { Component } from '@angular/core';
import { ViewDidLoad } from 'ionic-lifecycle-interface';

@Component({
  templateUrl: 'my-page.html'
})
export class MyPage implements ViewDidLoad {

  ionViewDidLoad() {
      console.log("Page Loaded");
  }

}

Keywords

ionic

FAQs

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