
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
angular-ec-callout
Advanced tools
Reusable callout (notification) directive and service. Use it whenever you need to display a (success, error or whatever) message to a user. Does not need jQuery.
Reusable callout (notification) directive and service. Use it whenever you need to display a (success, error or whatever) message to a user. Does not need jQuery.
bower install angular-ec-callout
angular.module('yourApp', ['angular-ec-callout'])
Ideally add it somewhere in the top
<ec-callout></ec-callout>
.controller('yourController', ['ecCalloutService', function(CalloutService) {
CalloutService.notify({
type: 'alert',
message: 'Alert callout!',
img: 'https://cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/svgs/fi-alert.svg',
timeout: 2000, // This callout will be removed in 2 seconds
delete: false // setting this option to true would remove all displayed callouts
});
}]);
The module comes without any styling that means it can look however you want it to look. You can have a look at the example to see sample style, but you can customize it.
The directive uses .callout
class, which is basically the callout wrapper. Then using type
parameter you can specify what class should be added, for example: alert
, success
, as can be seen on the service example above.
The close button has class .close-button
You can also animate the callout when it's added or removed to/from the queue. Look at the following example.
.callout {
transition: .5s linear all;
-webkit-transition: .5s linear all;
}
.callout.ng-enter {
opacity: 0;
}
.callout.ng-enter.ng-enter-active {
opacity: 1;
}
.callout.ng-leave {
opacity: 1;
}
.callout.ng-leave.ng-leave-active {
opacity: 0;
}
Above will make sure that it will fade in/fade out.
FAQs
Reusable callout (notification) directive and service. Use it whenever you need to display a (success, error or whatever) message to a user. Does not need jQuery.
The npm package angular-ec-callout receives a total of 2 weekly downloads. As such, angular-ec-callout popularity was classified as not popular.
We found that angular-ec-callout 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.