
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ng2-flashbox
Advanced tools
FlashBox(ng2-flashbox) - angular2 component used to display simple user information messages.
FlashBox(ng2-flashbox) GitHub repo.
FlashBox(ng2-flashbox) development enviroment(Angular4, SystemJS, gulp) repo.
Try online-demo.
npm install ng2-flashbox --save
FlashBox(ng2-flashbox) component is a part of the CommonComponents module.
Configure your module loader. If you use SystemJs add the following mapings:
System.config({
...
paths: {
...
'npm:': 'node_modules/'
...
},
map: {
...
'ng2-flashbox': 'npm:ng2-flashbox/index.js'
...
}
...
})
Import CommonComponents module in your application module.
...
Import { CommonComponentsModule } from 'ng2-flashbox';
...
@NgModule({
...
imports: [ ...
CommonComponentsModule
...
],
...
})
Use FlashBox(ng2-flashbox) component within component template with <flash-box></flash-box> tags.
Place your HTML based message inside element like this
<flash-box>
<!-- HTML Message -->
<div style="border-type: solid; border-width:2px">
<label style="color: rgb(0,0,0); text-decoration: underline;">Information message</label>
<label>
Any message
</label>
</div>
</flash-box>
<flash-box type="typeValue" position="positionValue" max-width="maxWidthValue" setTimeout="setTimeoutValue">
<!-- HTML message -->
</flash-box>
Specify FlashBox type. Available values(bootstrap label types): default, primary, success, info, warning, danger.
Specify FlashBox position. Available values:
Specify FlashBox maximum width.
Specify the amount of time FlashBox is visible in ms.
Use angular2 template local variable(TLV) system or invoke a method from a controller.
<flash-box .... #tlv_name>
....
</flash-box>
<button (click)="tlv_name.available_action()">Cause flashbox action</button>
reference component source
import { FlashBoxComponent } from 'ng2-flashbox';
reference component from template local variable using
@ViewChild("tlv_name") tlv:FlashBoxComponent;
tlv.available_action();
FAQs
Angular2 - FlashBox(ng2-flashbox) component
The npm package ng2-flashbox receives a total of 72 weekly downloads. As such, ng2-flashbox popularity was classified as not popular.
We found that ng2-flashbox 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.