Re:React.js Introduction for People Who Know Just Enough JQuery
by cdelsolar on Thursday July 09, 2015 @02:11PM
(#9859669)
Yes it is. What is {{item}}? Where did it come from?
[ Parent
| on HN ]
Re:React.js Introduction for People Who Know Just Enough JQuery
by ehsanu1 on Thursday July 09, 2015 @02:18PM
(#9859716)
It's missing the `ng-repeat="item in items"`.
Re:React.js Introduction for People Who Know Just Enough JQuery
by pete_mitchell on Thursday July 09, 2015 @02:31PM
(#9859798)
What is "items" and where did it come from?
Re:React.js Introduction for People Who Know Just Enough JQuery
by ehsanu1 on Thursday July 09, 2015 @03:09PM
(#9860050)
It would be some array defined on the angular $scope object, presumably instantiated when an angular directive/controller is instantiated for a component. I'm guessing that's roughly analogous to "this.props" in the react example, though I'm not very familiar with react.