Home > Software engineering >  Syntax of $http in AngularJS
Syntax of $http in AngularJS

Time:03-26

Can someone please explain this to me:

.
.
.
$http(req)
.then(function()
{
.
.
.

What does "dot then" mean? In general I find it hard to understand the syntax of AngularJS, and it does not appear to be explained anywhere. Can anyone direct me to somewhere it is actually described for newbees?

CodePudding user response:

$http returns angularjs promise https://docs.angularjs.org/api/ng/service/$q

Main difference from native Promise is that you dont need to call scope digest manually.

  • Related