angular ngRoute Js TypeError: Cannot read property 'ID_of_element' of undefined

i have this error

angular.js:13920 TypeError: Cannot read property '103' of undefined

103 is an ID of my element

and my code is app.js

var app = angular.module('myApp',['ngRoute','ngAnimate']);

app.config(function($routeProvider) {
    $routeProvider
    .when("/", {
        templateUrl : "home.html"
    }).
  when("/quatre/:id",{
    templateUrl:'quatre.html',controller:'ViewIdInformation'}).
  when("/404", {
        templateUrl : "404.html"
    })
    .otherwise({
      redirectTo:'/404'
    });
});

app.controller('ViewIdInformation',['$scope','$routeParams',function($scope,$routeParams){
    $scope.x = $scope.myWelcome[$routeParams.id];
}]);

and the code of my page quatre.html is like this

{{x.id}}

but i have the same problem please any help.


ANSWERS:


thank you stackoverflow i find the solution is like this

app.controller('ViewIdInformation',['$scope','$routeParams',function($scope,$routeParams){

                            $scope.id = $routeParams.id;


 MORE:


 ? ngRoute not working with external controller files
 ? ngRoute not working with external controller files
 ? ngRoute not working with external controller files
 ? Angular js ngroute is not working for a static HTML files
 ? AngularJS Controller is not working with ngRoute in IntelliJ (Web server issue?)
 ? AngularJS Controller is not working with ngRoute in IntelliJ (Web server issue?)
 ? AngularJS Controller is not working with ngRoute in IntelliJ (Web server issue?)
 ? AngularJS: ngRoute, otherwise not working
 ? AngularJS: ngRoute Not Working
 ? Angular multiple instances of the same controller are created