Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular2-meteor-auto-bootstrap

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-meteor-auto-bootstrap

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

  • 0.5.6
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 06 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc