阅读背景:

如何在观察AngularJS中的模型更改时忽略初始负载?

来源:互联网 

I have a web page that serves as the editor for a single entity, which sits as a deep graph in the $scope.fieldcontainer property. After I get a response from my REST API (via $resource), I add a watch to 'fieldcontainer'. I am using this watch to detect if the page/entity is "dirty". Right now I'm making the save button bounce but really I want to make the save button invisible until the user dirties the model.I have a web page that serves as the editor for




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: