Dependency Injection BoilerPlate

Dependency Injection with .NET inbuilt Dependency Injection framework public void ConfigureServices(IServiceCollection services) { ConfigureDependencyServices.getDependencies(services); } public static void getDependencies(IServiceCollection services) { services.AddScoped<interface1, concreate1>(); services.AddSingleton<interface2, concreate2>(); services.AddTransient<interface3, concreate3>(); } public class myController : ControllerBase { private

Continue Reading

Javascript Basics

Objects let vs var vs const arrays spread operator (...) let arrayCopy = code Snippets Check Enter is pressed or not    onKeyUp($event){        if($event.keyCode === 13)        console.log("Enter is pressed");    }getting value from a input tag on enter event    onKeyUp($event){        console.log($event.target.value);    }

Continue Reading

Concepts

Event Bubbling: <div (click) ="onDivClick()"> <button (click) ="onSave($event)">Save</button> </div> export class coursesComponent { onDivClick(){ console.log("Div is clicked"); } onSave($event){ console.log("button is clicked", $event); } } on click of the button, both button and div click

Continue Reading

Command line Script

CMD Change Drive"drive:"F:Change Directory"cd path""cd downloads/MyFolder"list all filesdirdirAdd New Foldermd filenamemd "Project Files"Add new Foldermkdirmkdir "new folder"move files to sub foldermv filename foldernamemv post.services.* servicesDelete Folderrmdir filenamermdir "Project Files"Clear TerminalclsclsGo back one foldercd ..cd..go back

Continue Reading