Category Archives: AngularJS

PHPHOST BLOG

Web Hosting Related Articles You May Need

Angular JS – Making Directives self-contained in our ASP.NET MVC Twitter App

This article is sixth in the series, I strongly recommend you go through the previous five if you are new to AngularJS:

Part 1 – Hello AngularJS – Building a Tweet Reader

Part 2 – Using AngularJS Modules and Services Feature in an ASP.NET MVC application

Part 3 – AngularJS – Post data using the $resource Service in an ASP.NET MVC app

Part 4 – Using Custom Directive in AngularJS to create Continue reading

Posted in AngularJS, ASP.NET MVC, Syndicated | Comments Off on Angular JS – Making Directives self-contained in our ASP.NET MVC Twitter App

Angular JS: Routing to a SPA mode using ASP.NET MVC

In the beginning of the series I had mentioned that Single Page applications (SPA) were gaining popularity and that some of the ready SPA templates that come with ASP.NET MVC are rather opinionated, giving them a steep learning curve. We started with b… Continue reading

Posted in AngularJS, ASP.NET MVC, Syndicated | Comments Off on Angular JS: Routing to a SPA mode using ASP.NET MVC

Using Custom Directive in AngularJS to create reusable JavaScript components for your ASP.NET MVC app

In our previous three articles on Angular JS, we have seen how we could get started by building a small Twitter Client. We have explored the view model, Modules and Services in Angular JS and in our last article saw how to post data using the $resource Service.

Today we’ll see how to use a feature called Directives in Angular JS. Directives allow you to encapsulate custom behavior in an HTML Continue reading

Posted in AngularJS, ASP.NET MVC, Syndicated | Comments Off on Using Custom Directive in AngularJS to create reusable JavaScript components for your ASP.NET MVC app

AngularJS – Post data using the $resource Service in an ASP.NET MVC app

Last time we looked at how we could use the $resource service to make our code more compact when making HTTP calls. Today we will see how to post data to a server using the $resource service.

We’ll continue using the code from the previous article. So you can download the zip from here or fork it from Github.

Posting Data
In our previous article we re-organized our application to use the $ Continue reading

Posted in AngularJS, ASP.NET MVC, Syndicated | Comments Off on AngularJS – Post data using the $resource Service in an ASP.NET MVC app

Using AngularJS Modules and Services Feature in an ASP.NET MVC application

In our previous post, Hello AngularJS – Building a Tweet Reader we saw how to create a simple ASP.NET MVC application using AngularJS. We saw how the $scope and $http objects were injected in our app by Angular. We also saw how to do Templating and DataBinding. Today we will learn a few more constructs like the Modules and Services.

As with our demos we’ll walk with a code sample to see how the Continue reading

Posted in AngularJS, ASP.NET MVC, Syndicated | Comments Off on Using AngularJS Modules and Services Feature in an ASP.NET MVC application

Hello AngularJS – Building a Tweet Reader

Single Page applications using client side JavaScript frameworks are getting popular and with the latest Web Update for Visual Studio 2012, quite a few SPA templates have been released by Microsoft and prominent Community members like John Papa. We hav… Continue reading

Posted in AngularJS, ASP.NET MVC, JavaScript, Syndicated | Comments Off on Hello AngularJS – Building a Tweet Reader