I want to use a user input value in to controller. for example i want to take a URL and send a HTTP GET request. I have tried the following format , unfortunatly it does not work.
<script>
var app = angular.module('myApp',[]);
app.controller('myCtrl' , function($scope, $http){
$http.get("{{url}}")
.success(function(response){
$scope.data=response.data;
});
});
</script>