ionic-module-template
A template for creating reusable module for Angular 2 and Ionic 2
Last updated 4 years ago by maxlynch .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ionic-module-template 
SYNC missed versions from official npm registry.

Ionic2 Module Template

This is a template for building your own reusable Angular2/Ionic2 module using TypeScript.

Developing

(More info soon). Develop your module like any other Angular 2 module. Then, run npm run build to build a local copy.

When you're ready to publish to npm, run npm publishPackage.

Using your module in an Ionic 2 app

import { NgModule } from '@angular/core';
import { IonicApp, IonicModule } from 'ionic-angular';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';

// Import your module
import { MyModule } from 'ionic2-module-template';

@NgModule({
  declarations: [
    MyApp,
    HomePage
  ],
  imports: [
    IonicModule.forRoot(MyApp),

    MyModule // Put your module here
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage
  ],
  providers: []
})
export class AppModule {}

Current Tags

  • 0.0.12                                ...           latest (4 years ago)

1 Versions

  • 0.0.12                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |