I am using the $routeParams service.
when i console_log($routeParams)
the service in my controller i see in the console all the values.
However when i console log $routeParams.id i get undefined. ( when i console out $routeParams i see the parameters )
i am able to get the values only if i use timeout:
$timeout(function() {
$scope.id = $routeParams.id;
}, 100);
any idea why that happens? its really weird and i think i am missing something.