Sharing Top Content from the Angular-sphere.
Browsing Tag

controller

Angularjs $resource vs $http

Angularjs $resource vs $http… Which one do you use?So with a $resource, you can call a GET to get the resource as a JavaScript object, then alter it and send it back with a POST, or even delete it with DELETE.I think putting $http requests into a service just generally works out better because you…
Read More...

Single Page Application with AngularJS

Single page application (SPA) is a web application that fits on a single page.Then need to specify our module in ng-app attribute and controller in ng-controller attribute If you done this correctly, you should see: Since we have our…

Single Page Application using AngularJs Tutorial

The good thing about Angular is that it has a set of ready-to-use modules to simplify building of single page applications.Then need to specify our module in ng-app attribute and controller in ng-controller attribute If you done this…

AngularJS Development

Maintained by Google and community of corporations and individuals, AngularJS is an open-source web application framework.It helps addressing various complex challenges encountered while developing the single-page application.AngularJS…

Learning AngularJS Basics

Its job is to define the application and serve as a container for all the controllers of that application.To create a module, let’s look at the following code:scriptvar app = angular.module(“appModule”, );/scriptThis is the syntax to…

Using Promises in AngularJS Views

This admittedly contrived service’s ‘getMessages’ function takes a callback, then waits two seconds (using Angular’s $timeout service) before passing an array of messages to the callback function.In both the callback and promise versions…