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.
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
The npm package angular-multi-transclude receives a total of 24 weekly downloads. As such, angular-multi-transclude popularity was classified as not popular.
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 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.