I've created a basic controller to filter an array, but it's throwing an error. When I remove "data-ng-controller" or run it without the controller, everything works fine. I'm having trouble pinpointing where the error is occurring. Please take a look at the code in the following URL -
function SimpleController($scope){
$scope.names=[
{name:'abc',address:'xyz'},
{name:'abcxyz',address:'xxyyzz'},
{name:'abcmno',address:'mnoap'},
{name:'aabbcc',address:'ppqqrrr'}
];
}