Do i need to specify oneway binding for contentBinding in CollectionView
-
12-11-2019 - |
Question
Do I need to specify oneWay
binding for contentBinding
in ArrayController
?
For example:
App.PeopleCollectionView = Ember.CollectionView.create({
contentBinding: Ember.Binding.oneWay('App.peopleController.content')
});
Solution
Yes, you can specify a one-way binding in this case for a small performance increase, provided you will not be manipulating the content
property of your people collection view.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow