How can I do console.log(childResult)
in the code below? In general where/how can I learn how to access ngRepeat scope(s) variables... NOT those in respective controller (it seems easy)... but esp I want to access the LOOP VARIABLES e.g. childResult
in my case. I have read all the guides and tutorials incl stackoverflow questions but I just cannot resolve it.
app.directive("appNamesTyped", ['$http', '$timeout', function ($http, $timeout) {
//app-names-typed
return {
restrict: 'A',
template: "<li ng-repeat=\"childResult in childrenLookupResults.d.as_typed | orderBy:'fname' | limitTo: limitLookupResults : beginLookupResults\"> </li>",
link: function (scope, element, attrs) {
try {
console.log(childResult);
} catch(er) {
}
}
};
}]);