Refinance now before rates go up! Get multiple rate quotes at GetMyLender.com.
Showing posts with label AngularJS. Show all posts
Showing posts with label AngularJS. Show all posts

Minify CSS and JS file using Visual Studio 2012

Before going on our main topic we have to discuss about one of the Dot Net feature i.e. Microsoft’s Web Optimization Framework. So, what is Web Optimization Framework and how to use this framework in Asp.net web form application? Microsoft’s (ASP.NET) Web Optimization Framework introduces a way to bundle and optimize CSS and JavaScript files.

If anyone wants to install Microsoft ASP.NET Web Optimization Framework, run the following command in the Package Manager Console of Visual Studio 2012.

Difference between GET and POST Methods

In this article, we will discuss about difference between GET and POST Methods. So that it will usefull in your apllications.

GET Method ():

1) Data is appended to the URL.
2) Data is not secret.
3) It is a single call system.
4) Maximum data that can be sent is 256.

Difference between Library and Framework

A Library and a Framework are a set of classes, modules and/or code (depending on the programming language) that can be used in your applications.

Suppose you have to maintain log or debugging info in your applications, draw charts, create an specific file formats like .html, .pdf, .xls, connect to a data base, create applications using Design Patterns or simply create some/complete application etc.

These types of problems can be solved using Framework or a Library.

AngularJS : Difference between Factory and Service

The main purpose of AngularJS service / factory function is to generate a single object or function that represents the service to rest of the application. That object or function is passed as a parameter to any other factory function which specifies a dependency on this service.

AngularJS : Change Title of Page According to Route

AngularJS is used to build single page web applications. So even if you change route i.e. route from one template to another, you would see the same title for all templates on the Browser.

In normal condition, route changes from a server, so page title set automatically to the title of head tag. Client-side routing doesn’t have that automatic mechanism.

AngularJS : Basic Information

The basic information of AngularJS is given in the form of Questions and their respective Answers are as follows:

1) Why this project is called "AngularJS"?
Answer : You know the basic information of Hyper Text Markup Language (HTML). HTML tags always have an Angular brackets like < > and pronunciation of these brackets is Angular. In AngularJS, code of view is written using HTML tag or using custom tag within Angular Brackets. Hence name is Angular. All the code written for Angular is a code of JavaScript (JS). Hence the complete name given to this project is "AngularJS".

AngularJS : Prerequisites, Libraries And Frameworks, Goals And Advantages

Prerequisite For Learning AngularJS ?

For learning AngularJS, it is sufficient to know only some basic

• knowledge of HTML, CSS, JavaScript, including the following concepts:
• The POJO (plain old JavaScript object)
OOP, including encapsulation and inheritance
Object creation, prototypes

AngularJS : Model-View-Controller Architecture And Different Ways of Writing Code

What is Model-View-Controller (MVC) Architecture ?

Model-View-Controller (MVC) is one of the software architectural pattern for implementing user interfaces (UI). This architecture divides a software application into three interconnected parts as given in its name i.e. Model, View and Controller. It separate internal representation of information from the ways that information is shown to or accepted from the user.

Model : Model is the data shown to the user in the view and with which the user interacts. Data can be of two types :

AngularJS : Introduction, History, Single Page Application


AngularJS Intoduction :

AngularJS is an open-source web application framework, maintained by Google and community that assist with creating Single Page Applications. The main goal behind AngularJS is web applications with Model–View–Controller (MVC) capability, in an effort to make both development and testing easier. It can be used to build dynamic as well as client-centric web applications.

AngularJS : Intellisense In Visual Studio 2012

If you are learning AngularJs using Visual Studio or you have better idea of using visual studio while working with AngularJs. So, for faster web development and error free code it is better to have an AngularJs intellisense for your visual studio html editor. But there is no extensibility for providing additional HTML attribute Intellisense .

Hence in this post we will learn to add AngularJS Intellinsese in Visual Studio 2012.

AngularJS : Conceptual Overview

Before going to learn any language or frameworks in details, its necessary to have a knowledge of some common concepts and terms. This section briefly touches on all of the important parts of AngularJS. So that you will quickly create virtual image of that concepts in mind.


AngularJS : Frequently Ask Questions (FAQ)

1) Why is this project called "AngularJS"? Why is the namespace called "ng"?
Answer : Because HTML has Angular brackets and "ng" sounds like "Angular".
2) Is AngularJS a library, framework, plugin or a browser extension?
Answer : AngularJS fits the definition of a framework the best, even though it's much more lightweight than a typical framework and that's why many confuse it with a library.
AngularJS is 100% JavaScript, 100% client side and compatible with both desktop and mobile browsers. So it's definitely not a plugin or some other native browser extension.
3) Is AngularJS a templating system?

AngularJS : Directive Components

At a high level, directives are markers on a DOM element (such as an attribute, element name, comment or CSS class) that tell AngularJS's HTML compiler ($compile) to attach a specified behavior to that DOM element or even transform the DOM element and its children.
Angular comes with a set of these directives built-in, like ngBind, ngModel, and ngView. Much like you create controllers and services, you can create your own directives for Angular to use. When Angular bootstraps your application, the HTML compiler traverses the DOM matching directives against the DOM elements.
What does it mean to "compile" an HTML template? For AngularJS, "compilation" means attaching event listeners to the HTML to make it interactive. The reason we use the term "compile" is that the recursive process of attaching directives mirrors the process of compiling source code in compiled programming languages.