reactive forms angular example
rxjs
observabale
http
First() will throw if it cannot find the first matching value, Single() will throw if it cannot find the value and if there are more than one matching element in the input sequence.
singleordefaulr or firstordefault
cte
what is the default return type of linq
Types of action filters:
System.componentmodel.dataannotation
Updatemodel:
Employee ob=new Employee();
updateModel(ob);
Tryupdatemodel
Formcollection
[bind] classname obname
[httppost(routeName)]
Modelstate.isvalid
When you an HTML helper, such as LabelFor() or TextBoxFor(), it displays a model property in a fixed manner. For example, LabelFor() renders a model property name in a <label> tag and TextBoxFor() renders a textbox in which a model property is shown for editing. Although this arrangement works fine in many cases, at times you need more control over the way data is shown to the end user. Consider, for example, that you have a model property that represents currency. While displaying this property value to the end user, you want to show a currency symbol such as $ along with the property value. Such a customization is not possible with the above-mentioned HTML helpers. Another example could be a DateTime model property that needs to be displayed in a specific custom format.
Updatemodel with include and exclude properties
@html.textbox(“id”,”value”,new{
Style=”bg-color:red;…”
Or
@class=”redtextbox”,@readonly=”true”
})
Editor template name is same as model name
Display
Displayformat
Scaffoldingcolomun(false/true)
@html.displaymodelfor
Sharedàdisplay temaplatesàurl
[UiHint(“to give other displaytemplate name”)]
Displayformodel
Editformodel
Automatically take the model and build the view…………
MvcBuildViews-àto enable compile time error checking
validateInput
@html.raw-àwill take html tags and render it and display appropriately
-Java script:
Typescript:
Keywords:
when var is there why let came?
to reduce the conflicts we are using this let and name duplicacy…
and when u changed the value outside it becomes coflict
conditional statements: if, ifelse, ternery
loops:
Accumulator-àis the result of last value
Current valueàis the current idex
1st timeàaccumulatorà20
And current index is: 30