angular2-meteor-auto-bootstrap
This package handle the automatic bootstrap for Angular2-Meteor applications.
Last updated 4 years ago by urigo .
MIT · Original npm · Tarball · package.json
$ cnpm install angular2-meteor-auto-bootstrap 
SYNC missed versions from official npm registry.

angular2-meteor-auto-bootstrap

This package handle the automatic bootstrap for Angular2-Meteor applications.

Without this package, your components should look like that: (with the viewProviders in each one of them)

@Component({
    selector: 'my-comp',
    viewProviders: [
        IterableDiffers.extend([new MongoCursorDifferFactory()])
    ]
})
@View({
    directives: [NgFor],
    templateUrl: 'my-comp.html'
})
export class MyComponent extends MeteorComponent {

}

This package adds the MongoCursorDifferFactory into the defaults differs of Angular 2 so you don't need to add it to each component you create.

So in order to use this package, first make sure to install all the required dependecies:

npm install @angular/core
npm install angular2-meteor
npm install angular2-meteor-auto-bootstrap

And then import the bootstrap from THIS package:

import {bootstrap} from 'angular2-meteor-auto-bootstrap';

And then just init it like any other Angular 2 application, using the bootstrap function:

@Component({
    selector: 'app'
})
@View({
    templateUrl: 'client/app.html',
    directives: [Transactions]
})
export class Main { }

bootstrap(Main);

For more examples and working code, please refer to the /examples/ folder in this repo.

Current Tags

  • 0.6.0                                ...           latest (4 years ago)

8 Versions

  • 0.6.0                                ...           4 years ago
  • 0.5.6                                ...           4 years ago
  • 0.5.6-beta.1                                ...           4 years ago
  • 0.5.5                                ...           5 years ago
  • 0.5.4                                ...           5 years ago
  • 0.5.2                                ...           5 years ago
  • 0.5.1                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |