ng-repeat and $index, $event, $log

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

$index and $event are handy shortcuts that allow you to access useful information directly in your views. $log facilitates configurable logging without using console.log directly.

Iván Navarro
~ 7 years ago

Hi John, in the sample code the ng-click needs a reference to the controller instance to work "main.myFunc($event)".

Great lessons by the way,