@Component({
selector: 'c2-dropdown',
properties:['items']
})
@View({
template: `
<div>
<ng-content></ng-content>
</div>`
})
export class C2Dropdown {
constructor() {
}
}
@Component({
selector : 'app'
})
@View({
template: `
<c2-dropdown items="['11','12']">
++{{items}}++
</c2-dropdown>`,
directives : [C2Dropdown]
})
class MainCmp {
constructor() {
}
onInit() {
}
}
bootstrap(MainCmp);@View({
template: `
<c2-dropdown #dropdown items="['11','12']">
++{{dropdown.items}}++
</c2-dropdown>`,--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/8yoAgJOdwNU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/8yoAgJOdwNU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.