Hi
I've built a directive in Angular 2 that allows "transcluded" template.
inside the transcluded template i'd like to access the "parent" directive
members. how can I do that? the visibility isnt there out of the box
in other words, in the following code the ++{{items}}++ interpolation
gives me ++++:
*index.html:*
<c2-dropdown items="['11','12']">
++{{items}}++
</c2-dropdown>
*c2dropdown.ts:*
import {Component, View, NgFor, NgIf} from 'angular2/angular2';
@Component({
selector: 'c2-dropdown',
properties:['items']
})
@View({
templateUrl: './components/C2Dropdown/C2Dropdown.html'
})
export class C2Dropdown {
constructor() {
}
}
*c2dropdown.html*
<div>
<content></content>
</div>
thanks!!
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.