JSPM

ionic-lifecycle-interface

1.0.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q17978F
  • License MIT

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

Package Exports

  • ionic-lifecycle-interface

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ionic-lifecycle-interface) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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");
  }

}