angularjs - Show Variables on Markup Using Angular Directive With Isolate Scope -
i have directive isolate scope , own controller. i'd pass value parent scope , print out value onto markup. thought simply pass this:
scope: { isoprop: '=' }
i set watches on link , controller, see value beingness passed properly. however, don't know how utilize value on markup itself.
i've set plunker illustrate issue. on line 17 in index.html, expecting {{dirctrl.isoprop}}
or {{isoprop}}
print out value passed in, don't seem to.
can explain i'm doing wrong?
you can seek set markup template
this:
template: '{{isoprop}}'
angularjs angularjs-directive angularjs-scope
No comments:
Post a Comment