• Exploring Angular’s “Controller as” Syntax and the vm Variable

    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, the “controller as” syntax was introduced, and made controller code creation more readable. Let’s see both…
    • Thu, Jul 2 2015
  • Simplifying the Liskov Substitution Principle of SOLID in C#

    Before I start writing this article, I want to thank Steve Smith for his great course on the same topic with Pluralsight. This post is inspired by that course.
     
    The Liskov Substitution Principle says that the object of a derived class should be able to replace an object of the base class without bringing any errors in the system or modifying the behavior of the base class.
    In short: if S is a subset of T, an object of…
    • Mon, Jun 29 2015
  • How to work with the Bootstrap DropDown in AngularJS

     

    In this post, we will learn how to work with the Bootstrap dropdown in an AngularJS APP with the help of one of the best Angular Component Libraries out there. In this step by step by approach we’ll cover how to:

    1.       Bind a drop-down with the controller;

    2.       Select an item in the drop-down and pass to the controller;

    3.       Bind a drop-down with the Web API

     
    Bootstrap dropdown
    A simple bootstrap dropdown button can…
    • Mon, Jun 29 2015
  • Learning SOLID principles using C# - Webinar recap

    On June 19th we held a webinar on “Learning SOLID principles Using C#” for the Indian region and we’d like to share this presentation with you now! In the webinar, we covered:

    1. The Single Responsibility principle with demo
    2. The Open Closed principle with demo
    3. The Lisokov Substitution principle with demo
    4. The Interface Segregation principle
    5. The Dependency Inversion principle

    This webinar was completely…

    • Tue, Jun 23 2015
  • Understanding Scopes in AngularJS Custom Directives

    A look through the use of shared, inherited, and isolated scopes when working with directives in AngularJS.
    • Thu, Jun 11 2015
  • Deep Dive into Custom Directives in AngularJS – Webinar recap

    We recently held a webinar for the Indian region on May 29th titled “Deep dive Into Custom Directives in AngularJS”.

    The presentation was attended by a good number of developers from the Indian region, and I covered a range of topics, including:

    • Directives in AngularJS
    • Create first custom directive
    • Controller in custom directive
    • Shared Scope
    • Inherited Scope
    • Isolated Scope

    You can find a recording…

    • Thu, Jun 4 2015
  • 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 to be loaded asynchronously.  Let’s take, for example, a single page Product application…
    • Tue, Jun 2 2015
  • 11 things about JavaScript functions every .NET developer should know: Webinar Recap

    We recently held a webinar for the Indian region on March 27th, titled “11 things about JavaScript function every .NET developer should know”.

    The presentation was attended by a good number of developers from the Indian region, and I covered a range of topics, including:

    • Functions as a statement
    • Functions as an expression
    • Return statements
    • Arguments in Javacript functions
    • JavaScript functions as c…
    • Wed, May 20 2015
  • 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:

    1.       Function A takes another function (let’s call this one function CB) as one of the parameters.

    2.       Function A executes…

    • Wed, May 20 2015
  • Objects in JavaScript for .NET developers – Part 1

    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 created object. Every object in JavaScript contains a second object called a prototype object.
    If you’re coming from a .NET background, the sentences you…
    • Tue, May 19 2015
  • How to use AngularJS in ASP.NET MVC and Entity Framework

    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. Later in the post, we will see how to access data using the Entity Framework database as a first approach, then we’ll explore how to access the data in AngularJS…
    • Wed, May 13 2015
  • 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 we want to share a Product object between the controllers. Here I have created an AngularJS…

    • Mon, May 4 2015
  • 11 things about JavaScript functions that .NET developers should know: Part 2

    This is the second part of the series in 11 Things about JavaScript Functions that .NET Developers Should Know . You can find part 1 on our blog, and in this part of the series we will discuss:

    1. Scopes in functions
    2. Nested functions and Lexical scoping
    3. Functions’s this keyword
    4. Function as constructor
    5. The call() and the apply()  methods

     

    Scopes in function

    Scoping stands for the current context of code execution…

    • Tue, Apr 14 2015
  • Simplifying AngularJS in 60 minutes: Webinar recap

    We recently held a webinar for the Indian region on March 27th, titled “Simplifying AngularJS in 60 minutes”.

    [youtube] width="560" height="315" src="http://www.youtube.com/embed/9r4DQdghAX4" [/youtube]

    The presentation was attended by good number of developers from the Indian region, where host Microsoft MVP and Infragistics Consultant Dhananjay Kumar covered a range of topics…

    • Tue, Mar 31 2015
  • How to use NodeJS, Express, and Bower to Create AngularJS apps

    Recently I heard someone say that “IDE makes you ignorant, so don’t rely on it”. The thought behind this is that as .NET developers, we cannot think of life beyond Visual Studio, so we become ignorant and don’t care about the behind the scenes complexities. We create a project by selecting a specific project template and manage the different required packages using the NuGet package manager. Super simple,…

    • Fri, Feb 13 2015
  • 11 Things About JavaScript Functions that .NET Developers Should Know: Part 1

    I have often seen .NET developers struggle with JavaScript. They try to compare C# functions with JavaScript functions and usually make some minor but conceptual mistakes while using it. We can all agree that JavaScript functions are the backbone of the JavaScript programming language, and if one has a good understanding of the function, then using JavaScript is easier. So in this two parts series, I will focus some important…

    • Tue, Feb 10 2015
  • Getting started with JavaScript Unit Testing using QUnit

    It’s usually good practice to have automated unit tests while developing your code. In unit testing, we test the smallest unit of the code for a particular behaviour. The Unit test helps us to find bugs in the code early in the development cycle. Essentially, a unit test is the piece of code which verifies the behaviour of a particular unit of the code in the development phase. Unit tests can be run by the test runner…

    • Thu, Jan 15 2015
  • How to create a Microsoft Azure-based MVC application

    “Cloud” has been a buzz word for a while now. But what does it mean for you as a developer? For starters, you won’t have to write very different code for the cloud than what you’re already writing for in-premise applications.

    Let’s assume that you are already familiar with MVC applications. If that’s true, in this post we’ll focus on demonstrating how building for the cloud is not very much different…

    • Thu, Jan 8 2015