Year: 2015
-
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,…
-
Don’t Create REST APIs with WCF REST Services…use Web API Instead
There was time when developers used to create Web Service using the WCF. Their argument was using basicHttpBinding makes a WCF service as a Web Service. Yes that ASMX based web service. I never agree to this argument. Clearly WCF was an evolvement over ASMX Web Service. Now let us talk about purpose of this…
-
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…
-
Simplifying the JavaScript Callback function for .NET developers
In JavaScript, functions are objects, and they can: Be passed as an argument to another function Return as a value from a function Be assigned to a variable Let’s assume that you have a JavaScript function (let’s call it function A) with the following properties: Function A takes another function (let’s call this one function…
-
Objects in JavaScript for .NET developers – Part 1
Read full article on the Infragistics blog Here are some fun facts for you: JavaScript is not an object oriented language, but almost everything in JavaScript is an object. JavaScript does not have classes, and we can create an object from an object. A function can be used as a constructor, and returns a newly…
-
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…
-
Resources from workshop on Onion Architecture in ASP.NET MVC
Find resource from the workshop here I would start this post thanking students who came to learn in almost 40 + degree centigrade, thanks to C# Corner Delhi Chapter for hosting it, and thank to Infragistics for supporting it. I had awesome time teaching onion architecture in ASP.NET MVC. I love to teach and perusing…