Validating User Input on a Form in Angular JS

I have often seen entry level developers struggling with user input validation in AngularJS single page applications. In this post, I will give a quick but useful introduction of validations in AngularJS; consider this post as a base learning document from which you can do further learning. Let’s start with an example as shown inContinueContinue reading “Validating User Input on a Form in Angular JS”

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,ContinueContinue reading “Exploring Angular’s “Controller as” Syntax and the vm Variable”

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 dropdownContinueContinue reading “How to work with the Bootstrap DropDown in AngularJS”

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: GivesContinueContinue reading “Understanding scopes in AngularJS custom Directives”

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,ContinueContinue reading “A Step-by-Step Guide to Working with the ASP.NET Web API and AngularJS”

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 viewsContinueContinue reading “Simplifying Routing in AngularJS”

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.ContinueContinue reading “How to use AngularJS in ASP.NET MVC and Entity Framework”

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 thatContinueContinue reading “How to share data between controllers in AngularJS”

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 SightContinueContinue reading “Directives in AngularJS simplified with examples: Part 1”