I was wondering in case I have a controller and ng-if directive on the same element as in
<div foo ng-if=“ctrl.visible”>You can see me</div>
and a controller, something like
NgController(selector: ‘[foo]’,….)
class FooController { var visible = true; }
Should I see the text “You can see me" or not?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…