javascript - Angularjs ng-href Bug? -


i came across strange , wanted see if had same problem. using angularjs ng-href directive within ng-repeat below. issue encountered if ng-href tag contains {{var}}, nothing.

<li ng-repeat="app in apps">    <a ng-href="{{app.name}}">{{app.name}}</a> <--this not work </li> 

if add space (or else) before or after {{var}} illustrated below links expected.

<li ng-repeat="app in apps"> <!-- note bug? here ... without leading or trailing character, doesn't work!! -->    <a ng-href=" {{app.name}}">{{app.name}}</a> <--this works (added leading space) </li> 

am missing here? expected functionality? bug? tested in chrome , firefox same result...

there seem ticket bug. ticket contains workarounds , fixes.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -