| by Gagandeep Singh | No comments

Connect your AngularJS application to Firebase

AngularJS by default provides a two way data binding between your view and controller. By connecting a real time database like Firebase you can extend the two way data binding to three way data binding. So if there is any changes in any one of the model, view or database, the updated content will be […]

Read More
| by Gagandeep Singh | No comments

Services in AngularJS

As seen some of the previous tutorials, AngularJS provides some in-build services like $http, $location, etc. There may be chances while creating an application that the in-build services are not sufficient and we may need to create our own service. Services are nothing but a block of code which is used to perform some repetitive […]

Read More
| by Gagandeep Singh | No comments

$location service in AngularJS

In AngularJS we have an inbuilt service $location which is used if we want to get the current URL of the browser. The best part of $location service is that it is synchronized with the browser’s URL. So if any change is made to the browser’s URL, $location service will be updated and vice-versa. We […]

Read More
| by Gagandeep Singh | No comments

Creating Views in AngularJS

AngularJS is mostly used in SPA (Single Page Application) kind of projects. In Single Page Application’s we have a main page and rather than calling a new page for each item, we create views which are partial html pages and those are loaded within the main page. For example, Let our main page be index.html […]

Read More
| by Gagandeep Singh | No comments

$apply() function and digest loop in AngularJS

In AngularJS we have a function $apply() which is a part of $scope object. The $apply() function accepts a function as its parameter. This function which is passed to the $apply() contains the code where the changes are being done to the models which are used in our AngularJS application. For AngularJS application to know […]

Read More