how can i tell angular to inject the data from scope.shits into ShitDetail Controller?
function ShitCtrl($scope) {
$scope.shits = [
{
"id": "goMedus",
"name": "goMedus",
"snippet": "Fast just got faster with Nexus S.",
"copy": "hallo"
},
and here is the data injecton in the tutorial done via json. i would like to get oscar mike without because i have troubles in connecting to external json with grails urlMappings, so i would like to do this later on. any help appreciated
function ShitDetailCtrl($scope, $routeParams) {
$scope.shitId = $routeParams.shitId;
}
my view looks like so:
TBD: detail view for {{shitId}} and {{shitName}}
shitId gets rendered and shitName not.