ionic-lifecycle-interface
v1.0.7
Published
Provides basic TypeScript interfaces for the lifecycles of an Ionic 2+ page
Downloads
8
Maintainers
Readme
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");
}
}