Let's say I have 3 links displayed on my webpage: A B C,
When the user clicks on link A, it should trigger a function like this:
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope, $http) {
$http.get("some.url/A")
.then(function(response) {
$scope.myWelcome = response.data;
});
});
How can I make link "A" dynamically reach the corresponding URL using AngularJS?