Thank you Dinesh.

Ok I have managed to move my code to a directive and it works as long as I 
use this:

$scope.streamid = $routeParams.itemId;


However, I cannot use $routeParams.itemId as the the streamID because that 
value will be reused next time our feed gets replaced. The value I was 
asked to use is in the JSON feed of articles stored as PostID. How do I 
retrieve that value at the controller stage? or is that not possible? That 
value is only available only after angular has compiled and rendered the 
view.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to