Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.