- Creating New Project Options:
Details Here
2. If you see the project did not created the templete as seperate html file, open angular.json file and setup these 2 line to false like this:
4. Adding New Component:
ng g c test2
Details Here
2. If you see the project did not created the templete as seperate html file, open angular.json file and setup these 2 line to false like this:
4. Adding New Component:
ng g c test2
Layer 1: WebUI (Angular)
https://monirblog.wordpress.com/2018/08/29/setup-angular-2-environment-in-a-new-computer/
Layer 2: ASP.NET Web API Service
https://monirblog.wordpress.com/2018/09/11/asp-net-web-api-service/
Video: https://www.youtube.com/watch?v=FQ__z26TsHU
Layer 3: Data Access Layer
https://monirblog.wordpress.com/2018/09/11/data-access-layer/
ng g c employees/listEmployees –spec false –flat true
this will create all required component inside the employees folder.
If not installed, install urlrewrite for IIS from here: https://www.iis.net/downloads/microsoft/url-rewrite
You may need to reboot your computer.
step 1: Build angular application
Option 1: If you want to deploy the application in root folder,
ng build –prod
double – infront of prod
Option 2: If you want to deploy the application inside a folder:
ng build –prod –base-href /FOLDERNAME/
double – infront of prod and base-href
Either option will create a dist folder inside your angular application
Step 2: Create a folder(FOLDERNAME) in your c drive (or anywhere) and copy all content from dist folder to this newly created folder FOLDERNAME.
step 3: Setup new application in IISMANAGER
To change base href from root folder to a subfolder:
ng serve -o –base-href /MFGlist/