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

John Lindquist
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
Iván Navarro
~ 4 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,