Please enable JavaScript.
Coggle requires JavaScript to display documents.
Angular JS 4 (single slot transclude (within a template element use (ng…
Angular JS 4
single slot transclude
injecting html into another template html
directive property
within a template element use
ng-transclude
so the front-end html will go into the template element that uses the ng-transclude
transclude: true
inheritance
require: '^^controllerName"
parent controller
link function $ctrl
will have access to the parent controller methods
require: ['something', 'anotherController']
access one of these
$ctrl[0]
Multi-slot automated transclusion
give transclude: properties
that reference within a html element through
ng-transclude="propertyName"
So the transclude property value will be used inside the element
the value could be a html syntax