@HostBinder and @HostListner Example in angular 2|4|5|6|7
@HostBinder and @HostListner Example in angular 2|4|5|6|7 @Hostbinder and @Hostlistner are used to define custom directives using @Hostbinding and javascript events using @HostListner. So let me demonstrate it with an simple example. Step1: Create new custom directive...
Auth Guard in Angular 7 Login Example
Auth Guard in Angular 7 Login Example In this example, I have taken a simple login example where a user may open dashboard after login only after successful login username will be stored into localstorage which is authentication for auth guard. Take the Following...
asp.net registration form with built in type html helpers | example
asp.net registration form with built in type html helpers | example Example 3: In this example we will create a form and submit and show data Action public ActionResult BuiltInTypehelpers() { return View(); } View @{ ViewBag.Title = "BuiltInTypehelpers"; }...
Inline HTML Helper at Advanced Level
Inline HTML Helper at Advanced Level Example1: Simple Example of Inline HTML Helper Controller Action public ActionResult InlineHTMLHelper() { return View(); } View: @helper mylist(string[] arr) { foreach (string data in arr) { @data } } @mylist(new string[] {...