Category: Angular
-
Exploring Angular’s “Controller as” Syntax and the vm Variable
Read full article on the Infragistics blog Often, I hear developers ask “What is the ‘controller as’ syntax and how it is different from the $scope object approach of controller creation?” In this post we will learn about controller as syntax and compare it with the $scope object approach of controller creation. In AngularJS 1.2,…
-
How to work with the Bootstrap DropDown in AngularJS
Read full article on the Infragistics blog In this post we will learn how to work with the Bootstrap dropdown in an AngularJS APP. In a step by step by approach, we’ll cover how to: Bind a dropdown with the controller; Select an item in the drop down and pass to controller; Bind a dropdown…
-
Understanding scopes in AngularJS custom Directives
Read full article on the Infragistics blog In this post we will learn about different kinds of scopes in AngularJS custom directives. First we’ll start with a high level introduction of directives and then focus on scopes. Directives Directives are one of the most important components of AngularJS 1.X, and have the following purposes: Gives…
-
A Step-by-Step Guide to Working with the ASP.NET Web API and AngularJS
Read full article on the Infragistics blog In this post we will learn to work with AngularJS and ASP.NET Web API in a step by step manner. I’ll assume that you are already familiar with some of the basic terms like what AngularJS and a Web API is, and we’ll work in a hands-on way,…
-
Simplifying Routing in AngularJS
Usually AngularJS is used to create a single page application with multiple views. But we can create multiple views in an AngularJS-based single page application by using routing – and in this post we’ll learn how to do that! What is Routing? Routing allows us to logically divide the application in the multiple logical views…
-
How to use AngularJS in ASP.NET MVC and Entity Framework
Read full article on the Infragistics blog These days, it seems like everyone is talking about AngularJS and ASP.NET MVC. So in this post we will learn how to combine the best of both worlds and use the goodness of AngularJS in ASP.NET MVC by demonstrating how to use AngularJS in an ASP.NET MVC application.…
-
How to share data between controllers in AngularJS
In my AngularJS classes, I often get asked, “How do I share data between the controllers in AngularJS?” On the Internet, there are many solutions suggested. However, I prefer to share data using the Shared Data Service method, and that’s what we’re going to explore in this post. To start with, let’s suppose that…
-
Directives in AngularJS simplified with examples: Part 1
Thanks First At the very beginning of this post, I want to give credit to following two online courses. What I learnt from these courses, converted in this post. · AngularJS Custom directive course by Dan Wahlin.[Note: Click on this link to get 15% discount] · AngularJS Directives Fundamentals by Joseph Eames on Plural Sight…
-
Services in AngularJS simplified with examples
Read: 21 points cheat sheet on AngularJS controller and the $scope object What is service? It provides us method to keep data across the lifetime of the angular app It provides us method to communicate data across the controllers in a consistent way This is a singleton object and it gets instantiated only once per…