Ich bin neu zu AngularJS. Ich muss http get Methode aufrufen, um Nodejs vor dem Laden der Seite zu erreichen. Kann mir jemand ein Beispiel geben ??Angular JS Rest Anrufaufruf erhalten auf Seite laden Beispiel
HTML:
<body onLoad="loadData()>
</body>
AngularJS:
$scope.loadData =function($scope,http) {
// Need to know how to call the "/getcustomers" some url to hit the rest call here
//Already the route part is configured by someone
}