I'm trying to do an html import with angular to link to a dynamic page.
//SampleController
$scope.id = 1;
//sample.html
<p>{{id}}</p> <!-- 1 -->
<link rel="import" href="/samples/{{id}}">
The <p>
tag shows the id however the href attribute gives the error...
cannot GET /samples/%7B%7Bid%7D%7D 404
It seems that the curly braces are not expanding inside the href attribute. Can I do something like this?
Use
ng-href