AngularJS and Material Icons
Material icons work fine in my AngularJS app.
In my .html template:
<i class="material-icons"></i>
This works great, the icon displays correctly.
But this code doesn't:
<div ng-repeat="x in pages">
current icon : {{x.icon}}
<br>
<i class="material-icons">{{x.icon}}</i>
</div>
where pages are defined in the controller:
$scope.pages = [
{icon: ""},
{icon: ""},
{icon: ""}
];
I see the correct value for {{x.icon}}.
Why
<i class="material-icons">{{x.icon}}</i>
does not work?
+3
source to share