首页 > angular如何动态添加dom节点

angular如何动态添加dom节点

1 、angualr如何实现点击一个按钮增加一行html 如增加 <p>.....<button>删除</button></p>
2 、ng-repeat中例如ng-repeat="s in ss" 如果controller中ss的值变了 生成的列表会跟着变动吗


使用ng-repeat可以实现

可以查看我写的这个例子

【热门文章】
【热门文章】