lundi 29 septembre 2014

Binding stops working in input within ng-if


Vote count:

0




For some reason binging doesn't work on an input within ng-if block in a directive


so this, doesn't work:



app.directive 'foo', ->
restrict: 'E'
scope:
type:'='
template: "<input ng-if=\"type === 'string'\" ng-model='filterText'>
<div> {{filterText}}"


<foo type="'string'" />


it works fine outside of directive or without ng-if. Wrapping input inside of div with ng-if not helping. Is it a bug?


jsbin link



asked 52 secs ago

Agzam

5,065






Binding stops working in input within ng-if

Aucun commentaire:

Enregistrer un commentaire