Repository to push in code changes related to my learning in Angular world along with .NET Core.
- Angular: https://angular.io/guide/quickstart
- .NET Core: https://docs.microsoft.com/en-us/dotnet/core/get-started?tabs=windows
- Upgraded AspNetCore to v2.1.4
- SQL Server 2017 Express Edition: https://www.microsoft.com/en-us/sql-server/sql-server-downloads
-
Src (Source folder): 1.1) Index.html - It defines the starting point of the application. Mainly it's the app.component ("app-root tag") but we can change it per requirement. 1.2) Main.ts - Bootstarps the angular app. 1.3) Style.css - Contains the top level styles of the app 1.4) Assets - stores images and other resources for the app
-
e2e (End to end testing folder):
The first thing is to understand the architecture that revolves around Component and Modules and then to explore different scenarios as mentioned below:
- Add a new component in the applicaiton and support navigating to that component 1.1.) Added Visual Studio extension called "Angular Item Templates" to easily add different Angular items in the solution, link - https://marketplace.visualstudio.com/items?itemName=xpasza.Angular4ItemTemplates
- Communicate data among components 2.1.) In order to communicate data between components that does not have parent-child relationship, use a Service. Here, I've added a DataService. The service uses the BehaviorSubject in order to publish the change to all the subscribers. 2.2.) Understand the difference between BehaviorSubject and Subject. Added notes in the DataService.
- NgModel - Two-Way DataBinding 3.1) Added an example for Event binding. Added an example of how to use NgIf.
- Added examples to use HostListener and HostBinding.
- Added examples for Pipe as well as custom pipe.
- Added child/nested component