Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
angular-multi-transclude
Advanced tools
Simple unobtrusive Angular multiple transclusion support for ng-transclude
Simple unobtrusive Angular multiple transclusion support for ng-transclude
bower i --save angular-multi-transclude
Example task: Create a myPanel
directive transcluding a fragment to the header and a fragment to the body.
Use transclude-from
attribute along with ng-transclude
directive to define transclusion slots:
angular.module('myApp', ['angular-multi-transclude'])
.directive('myPanel', function(){
return {
restrict: 'E',
transclude: true,
scope: true,
template:
'<div class="panel panel-default">' +
' <div class="panel-heading" ng-transclude transclude-from="header">' +
' </div>' +
' <div class="panel-body" ng-transclude transclude-from="content">' +
' </div>' +
'</div>'
};
});
Use transclude-to
to wire each element to the respective ng-transclude
block:
<main ng-app="myApp">
<my-panel>
<div transclude-to="header">Hi there!</div>
<div transclude-to="content">Lorem ipsum dolor sit amet...</div>
</my-panel>
</main>
FAQs
Simple unobtrusive Angular multiple transclusion support for ng-transclude
We found that angular-multi-transclude 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.