How to assign Boolean value to model

One of the comments in the documentation says:

While ng-value is not documented, it is a useful directive, specifically when you are binding to a boolean value.

<input ng-model="foo" type="radio" value="true"> 

may not work but

<input ng-model="foo" ng-value="true" type="radio"> 

does.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)