【发布时间】:2017-03-29 22:22:18
【问题描述】:
我是 angularjs 的新手, 并且想知道完成有条件地生成或显示表单等任务的 angularjs 方式是什么? 让我们说
$scope.counter = function(){
if ($scope.years < 5){
// what is here? append or should return true and use ng-if directive in html?
}}
谢谢
【问题讨论】:
标签: angularjs angular-ui-router angularjs-ng-repeat