最近我發現一個真棒庫,允許反應的組分在角應用中使用,稱爲ngReactngReact:手錶深入屬性類型解釋
我的問題是關於手錶深入屬性,可以一個reactDirective組件上宣佈:
<body ng-app="app">
<div ng-controller="helloController">
<hello-component watch-depth="reference" fname="person.fname" lname="person.lname"></hello-component>
</div>
</body>
看着ngReact文檔的reactDirective service我看到有3個可能的值表德PTH:
- 參考
- 收集
- 價值
在我最初的勘探使用ngReact我一直堅持使用默認值選項。
我的問題是,這些類型之間有什麼區別?
當每種手錶深度類型是理想使用的簡單例子將是偉大的!