Hi,
I have set up express to server html. Since this is a quick test I
am not deploying everything on the server.
How do I access $http provider in the templarUrl ? is that even possible ?
i am looking for a simple way to test data binding.
angular.module('myApp',['ngRoute']) .config(function($routeProvider,$http)
{
$routeProvider.when('/', {
templateUrl:
$http.get('http://localhost:8000/repository/homeView.html'),
controller: 'myAppController'
});
})
Thanks,
Mohan
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.