Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
angular-flash
Advanced tools
Flash messages for Angular.js. Demo
Supports view changes, which means you can set a flash message, navigate to another view and your message will be displayed.
bower install angular-flash-messages
After adding angular-flash.js
to your project, add flash
as a dependency to your module. Here is a simple example:
angular.module('myModule', ['flash'])
.controller('EditProductController', function($scope, flash) {
$scope.save = function() {
// … save the product
flash('Saved!');
};
});
Then, in your HTML, simply add the <flash:messages>
element where you want your messages to be displayed. It can be in your main template or individual partials.
<body ng-app="myModule">
<flash:messages></flash:messages>
<main ng:controller="HomeController">
<h1>Home</h1>
</main>
</body>
If you need IE8 support (or prefer), you can use the attribute directive: <ol flash:messages></ol>
.
flash('My message')
<ol id="flash-messages">
<li class="success">My message</li>
</ol>
flash([ 'Hi!', 'My message' ])
<ol id="flash-messages">
<li class="success">Hi</li>
<li class="success">My message</li>
</ol>
flash('error', 'Something went wrong…')
<ol id="flash-messages">
<li class="error">Something went wrong…</li>
</ol>
flash([ 'Hi!', { level: 'warning', text: 'This is a warning!' } ])
<ol id="flash-messages">
<li class="success">Hi</li>
<li class="warning">This is a warning!</li>
</ol>
This is licensed under the feel-free-to-do-whatever-you-want-to-do license.
FAQs
Angular.js Flash Messages
The npm package angular-flash receives a total of 1 weekly downloads. As such, angular-flash popularity was classified as not popular.
We found that angular-flash 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.