1.0.7 • Published 6 years ago
ionic-lifecycle-interface v1.0.7
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");
}
}