2013-06-05 6 views

Odpowiedz

7

ng-if jest tylko dostępny w kątowej 1.1.5 i nowszych. Albo zmień wersję Angular, albo użyj ng-show zamiast:

<p data-ng-show="$index > 1"> 
    <a href="#">This button will only show when index is more than 1</a> 
</p> 
+0

Lub użyj AngularUI, który ma "ui-if" i wiele innych gadżetów. – rewritten