Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
angular2-meteor-auto-bootstrap
Advanced tools
This package handle the automatic bootstrap for Angular2-Meteor applications.
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 angular2
npm install angular2-meteor
npm install angular2-meteor-auto-bootstrap
And then import the bootstrap
from THIS package (not from the angular2 package):
import {bootstrap} from 'angular2-meteor-auto-bootstrap/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
This package handle the automatic bootstrap for Angular2-Meteor applications.
The npm package angular2-meteor-auto-bootstrap receives a total of 4 weekly downloads. As such, angular2-meteor-auto-bootstrap popularity was classified as not popular.
We found that angular2-meteor-auto-bootstrap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.