AngularJS has two types of binding
a.) One way binding
b.) Two way binding
In AngularJS different way to bind value in view:
Type Casting is the mechanism to convert one data type to another. While type casting of one data type to another, we get exception if the previous one data type is not compatible with the new data type. To avoid this exception, we have IS and AS operator in C# for safe type casting. Let's understand how to use both of them...
IS operator check for Object Type.
AS operator convert between compatible type Object.
This tutorial will teach you how to create a CRUD Application using AngularJS,PHP,MySQL and Slim framework.
By :- Anjana Wijesundara
Q1: Directives can be applied to which all element type?
Ans: Following represents the element type and directive declaration style:
`E` – Element name: `
`A` – Attribute (default): ``
`C` – Class: ``
`M` – Comment: ``
Method chaining is a technique that can be used to simplify code in scenarios that involve calling multiple functions on the same object consecutively. This is an example of how you can use method chaining
when using jQuery.
AngularJS contains the following core types of objects and components:
These core types can be injected into each other using AngularJS dependency injection mechanism. Throughout the rest of this text I will explain how to define and inject these components into each other.
“M” “V” “C” stands for “MODEL” “VIEW” “CONTROLLER”. ASP.NET MVC is an architecture to develop ASP.NET web applications in a different manner than the traditional ASP.NET web development. Web applications developed with ASP.NET MVC are even more SEO (Search Engine) friendly.
Developing ASP.NET MVC application requires Microsoft .NET Framework 3.5 or higher.
You can implement the following types of directives:
- Element directives
- Attribute directives
- CSS class directives
- Comment directives
Of these, AngularJS recommends that you try to use element and attribute directives, and leave the CSS class and comment directives (unless absolutely necessary).
The type of a directive determines how the directive is activated. An element directive is activated when AngularJS finds a matching HTML element in the HTML template. An attribute directive is activated when AngularJS finds a matching HTML element attribute. A CSS class directive is activated when AngularJS finds a matching CSS Class. And, a comment directive is activated when AngularJS finds a matching HTML comment.
Now a days in interview in C# this question is frequently ask that " What is the difference between ref and out parameter". In C#, a method can return only one value. If you like to return more than one value, you can use the ref & out keyword Here I will explain that....