SlideShare a Scribd company logo
ASP.NET Core
Visual Studio 2017
White papers
By Hamida REBAI
Cross-Platform Framework
Goal
With this you will be able to understand ASP.NET
Core and Angular 2.0 to build powerful and
dynamic applications from the scratch and guide
you to cutting-edge web development.
Agenda
• .NET Core is ?
• Getting Ready
.NET Core is …
• A reimplementation of the .NET framework.
• Multi-platform, with applications that can be Written, compiled and executed on Windows, Linux and
MacOS.
• Open-source, hosted on GitHub and open to community contributions. (https://github.com/dotnet/core)
• Modular, where each API is distributed in an independent NuGet package.
• The ability to create MVC ASP sites and Web APIs
• Quick to get started with simple command-line utilities.
• Compatible with traditional .NET Framework and .NET Xamarin through .NET Standard.
• Powerful: .NET Core-based websites are faster than those based on the .NET Framework.
Getting Ready
Windows
• Preparing the workspace
Download Visual Studio 2017
.NET Core tools are included in Visual Studio 2017..NET Core for Visual
https://www.visualstudio.com/thank-you-downloading-visual-
studio/?sku=community
Install the .NET Core workload
Make sure you installed the workload ".NET Core cross-platform development". You
can check and install workloads by launching the Visual Studio Installer.
Getting Ready
MacOS
Preparing the workspace
Install Pre-requisites
• Homebrew and OpenSSL
After installing brew, do the following:
.NET Core SDK for OS X
https://go.microsoft.com/fwlink/?linkid=843444
Getting Ready
Linux
• Set up the apt-get that hosts the packages
• Install .NET Core SDK
• Introduction to the .NET CLI
• Test that you have you .NET installed by going to command line or
terminal and typing :
 dotnet
https://www.microsoft.com/net/core#linuxredhat
Getting Ready
• Install JavaScript runtime
built NodeJs.js
• https://nodejs.org/en/
Setting up the project
• Open Visual Studio 2017, Click on File / New / Project and select the
project template Visual C# / .NET Core / Console App (.NET Core).
• From the Templates tree, expand the Visual C# node and select the
Web
• subfolder: the right section of the modal window will be populated by
a number
• of available project templates
Setting up the project
Setting up the project
• Select the ASP.NET Core Web Application (.NET Framework) template
and fill in the relevant Name, Location, and Solution name fields.
• In the next modal window, we can further customize our template by
choosing the default contents to include in our project (Empty, Web
API, or Web Application) and the authentication mechanism, should
we want to use one.
• Choose Web API and No authentication, then click the OK button to
create the project.
White Paper : ASP.NET Core AngularJs 2 and Prime
White Paper : ASP.NET Core AngularJs 2 and Prime
White Paper : ASP.NET Core AngularJs 2 and Prime
Package and resource managers
• In Visual studio 2015:
• The solution's projects are now
created in a /src/ folder by default.
This is just a convention, though, as
they can be placed anywhere.
• There is a new folder called
wwwroot, which will contain the
compiled, ready-to publish
contents of our application, while
everything else will be the project
source code.
Package and resource managers
• In Visual studio 2017:
• The solution's projects are now
anymore created in a /src/ folder, it’s
like before under the project
directory. Different.
• There is a new folder called wwwroot,
which will contain the compiled,
ready-to publish contents of our
application, while everything else will
be the project source code. The
same.
• Dependencies are the References
used in our project and it’s ordered by
SDK and Nuget.
Package and resource managers
• Startup.cs
• This class was introduced in OWIN-based applications to replace most
of the tasks previously was handled in Global.asax.
• In ASP.NET Core this class serve for the same role, it is the place
where we can add services, choose which application modules and
middleware functions to load, handle dependency injection tasks, and
configure the pipeline.
• Gloabal.asax of today named Startup.cs has been completely
rewritten to be as pluggable and lightweight as possible, meaning
that it will include and load only what's strictly necessary to fulfill our
application's tasks.
Testing the HTTP request pipeline
• If we run our application again, we should now be welcomed with the
following:
Adding Angular 2
• For new project
• Create JavaScript Services project
Adding Angular 2
Launch angular project
• If you have already a project you can force the creation like this :
• dotnet new angular –all
PrimeNG
• PrimeNG is a collection of rich UI components for Angular 2. PrimeNG
is a sibling of the popular JavaServer Faces Component Suite,
PrimeFaces.
Add PrimeNG - package.json
Add PrimeNG – webpack.config.vendor.js
Add PrimeNG – webpack.config.vendor.js
PrimeNg does not support pre-rendering so
in ..ViewsHomeIndex.cshtml, change:
<app asp-prerender-
module="ClientApp/dist/main-
server">Loading...</app>
to:
<app>Loading...</app>
Install webpack
• npm install -g webpack
Update webpack.config.vendor.js
• We modified the webpack.config.vendor.js file (to add PrimeNg and
Font Awesome) but it is not updated by the classic build process.
• So, We have to run its configuration manually whenever we alter it.
• In a command prompt, at the project root, run:
• webpack --config webpack.config.vendor.js
Add new page HTML
• Create a folder called prime in the components folder and add the
following code to
..ClientAppappcomponentsprimeprime.component.html:
Add new TS file
• Create the file and add the following code to
..ClientAppappcomponentsprimeprime.component.ts:
Update app.module.ts
Update the file at: ..ClientAppappapp.module.ts to add:
Update navmenu.component.html
• Add the following code to
..ClientAppappcomponentsnavmenunavmenu.component.html:
Launch Prime part
White Paper : ASP.NET Core AngularJs 2 and Prime

More Related Content

What's hot (20)

PPTX
Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)
Chris O'Brien
 
PPTX
SPSNL16 - Building Office 365 and SharePoint solutions using modern developer...
Waldek Mastykarz
 
PPTX
Lightning Web Component - LWC
Thierry TROUIN ☁
 
PPTX
SharePoint Framework
Vitaly Zhukov
 
PPTX
1. deploying an asp.net web application
Pramod Rathore
 
PPTX
Building solutions with the SharePoint Framework - introduction
Waldek Mastykarz
 
PDF
ECS19 Elio Struyf - Setting Up Your SPFx CI/CD pipelines on Azure DevOps
European Collaboration Summit
 
PPTX
ASP.NET 5 Overview: Post RTM
Shahed Chowdhuri
 
PPTX
[Patel] SPFx: An ISV Insight into latest Microsoft's customization model
European Collaboration Summit
 
PPT
ASP.NET Tutorial - Presentation 1
Kumar S
 
PDF
IVY: an overview
RobertoMontes31
 
PPTX
Supercharge Your SharePoint Framework Webpart with React
Eric Overfield
 
PPTX
Blazor and Azure Functions - a serverless approach
Alex Pshul
 
PDF
O365Con18 - Using ARM Templates to Deploy Solutions on Azure - Kevin Timmermann
NCCOMMS
 
PPTX
Chris O'Brien - Modern SharePoint sites and the SharePoint Framework - reference
Chris O'Brien
 
PPTX
Introduction to asp.net
shan km
 
PPTX
ASP.NET Core 1.0 Overview
Shahed Chowdhuri
 
PDF
Developing a Demo Application with Angular 4 - J2I
Nader Debbabi
 
PPTX
Angular4 getting started
TejinderMakkar
 
Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)
Chris O'Brien
 
SPSNL16 - Building Office 365 and SharePoint solutions using modern developer...
Waldek Mastykarz
 
Lightning Web Component - LWC
Thierry TROUIN ☁
 
SharePoint Framework
Vitaly Zhukov
 
1. deploying an asp.net web application
Pramod Rathore
 
Building solutions with the SharePoint Framework - introduction
Waldek Mastykarz
 
ECS19 Elio Struyf - Setting Up Your SPFx CI/CD pipelines on Azure DevOps
European Collaboration Summit
 
ASP.NET 5 Overview: Post RTM
Shahed Chowdhuri
 
[Patel] SPFx: An ISV Insight into latest Microsoft's customization model
European Collaboration Summit
 
ASP.NET Tutorial - Presentation 1
Kumar S
 
IVY: an overview
RobertoMontes31
 
Supercharge Your SharePoint Framework Webpart with React
Eric Overfield
 
Blazor and Azure Functions - a serverless approach
Alex Pshul
 
O365Con18 - Using ARM Templates to Deploy Solutions on Azure - Kevin Timmermann
NCCOMMS
 
Chris O'Brien - Modern SharePoint sites and the SharePoint Framework - reference
Chris O'Brien
 
Introduction to asp.net
shan km
 
ASP.NET Core 1.0 Overview
Shahed Chowdhuri
 
Developing a Demo Application with Angular 4 - J2I
Nader Debbabi
 
Angular4 getting started
TejinderMakkar
 

Viewers also liked (6)

PDF
Certification Digital Active
Hamida Rebai Trabelsi
 
PDF
C# Fundamentals for Absolute Beginners
Hamida Rebai Trabelsi
 
DOC
Anteproyecto. grupo 102058-140.
orlando93296708
 
PPTX
Pitch AlloTabib
Hamida Rebai Trabelsi
 
PDF
Présentation- Communauté
Hamida Rebai Trabelsi
 
PDF
Azure IOT: EVENT HUB & STREAM ANALYTICS & POWER BI
Chourouk HJAIEJ
 
Certification Digital Active
Hamida Rebai Trabelsi
 
C# Fundamentals for Absolute Beginners
Hamida Rebai Trabelsi
 
Anteproyecto. grupo 102058-140.
orlando93296708
 
Pitch AlloTabib
Hamida Rebai Trabelsi
 
Présentation- Communauté
Hamida Rebai Trabelsi
 
Azure IOT: EVENT HUB & STREAM ANALYTICS & POWER BI
Chourouk HJAIEJ
 
Ad

Similar to White Paper : ASP.NET Core AngularJs 2 and Prime (20)

PDF
Asp.Net Core MVC , Razor page , Entity Framework Core
mohamed elshafey
 
PPTX
Quick Interview Preparation Dot Net Core
Karmanjay Verma
 
PPTX
Web worker in your angular application
Suresh Patidar
 
PPTX
ASP .Net Core SPA Templates
Eamonn Boyle
 
PPTX
Beer City Code 2024 - Configurable Cloud Native Applications with .NET Aspire
Brian McKeiver
 
PPTX
ASP.NET Core: The best of the new bits
Ken Cenerelli
 
PDF
Angular - Chapter 1 - Introduction
WebStackAcademy
 
PPTX
Short-Training asp.net vNext
Betclic Everest Group Tech Team
 
PPTX
Mini-Training Owin Katana
Betclic Everest Group Tech Team
 
DOCX
Implementing a document viewer in ASP.NET Core 8.0
GleamTech Dev
 
PDF
Rongde Qiu-DDsmile-2015.1.25
Rongde Qiu
 
PPTX
The next step from Microsoft - Vnext (Srdjan Poznic)
Geekstone
 
PDF
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Brian Culver
 
PPTX
Laravel Crud Tutorial Basic Step by Stepy S
christopherneo4
 
PDF
Rome .NET Conference 2024 - Remote Conference
Hamida Rebai Trabelsi
 
PDF
Murach: An introduction to web programming with ASP.NET Core MVC
MahmoudOHassouna
 
PDF
.Net framework vs .net core a complete comparison
Katy Slemon
 
PDF
tutorials-visual-studio_visual-studio-2015-preview-comes-with-emulator-for-an...
Anil Sharma
 
PDF
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Brian Culver
 
PPTX
.Net Core
Bohdan Pashkovskyi
 
Asp.Net Core MVC , Razor page , Entity Framework Core
mohamed elshafey
 
Quick Interview Preparation Dot Net Core
Karmanjay Verma
 
Web worker in your angular application
Suresh Patidar
 
ASP .Net Core SPA Templates
Eamonn Boyle
 
Beer City Code 2024 - Configurable Cloud Native Applications with .NET Aspire
Brian McKeiver
 
ASP.NET Core: The best of the new bits
Ken Cenerelli
 
Angular - Chapter 1 - Introduction
WebStackAcademy
 
Short-Training asp.net vNext
Betclic Everest Group Tech Team
 
Mini-Training Owin Katana
Betclic Everest Group Tech Team
 
Implementing a document viewer in ASP.NET Core 8.0
GleamTech Dev
 
Rongde Qiu-DDsmile-2015.1.25
Rongde Qiu
 
The next step from Microsoft - Vnext (Srdjan Poznic)
Geekstone
 
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Brian Culver
 
Laravel Crud Tutorial Basic Step by Stepy S
christopherneo4
 
Rome .NET Conference 2024 - Remote Conference
Hamida Rebai Trabelsi
 
Murach: An introduction to web programming with ASP.NET Core MVC
MahmoudOHassouna
 
.Net framework vs .net core a complete comparison
Katy Slemon
 
tutorials-visual-studio_visual-studio-2015-preview-comes-with-emulator-for-an...
Anil Sharma
 
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Brian Culver
 
Ad

More from Hamida Rebai Trabelsi (20)

PDF
APIs In Action -Harnessing the Power of Azure API Management: Building Robust...
Hamida Rebai Trabelsi
 
PDF
Azure Spring Clean 2024 event - Azure API Management: Architecting for Perfor...
Hamida Rebai Trabelsi
 
PDF
Streamlining Workflows: Unleashing Automation with Azure and Power Automate
Hamida Rebai Trabelsi
 
PDF
Configurer GitHub Actions avec Docker et DotNET 8.pdf
Hamida Rebai Trabelsi
 
PDF
Build containerized application using Docker and Azure.pdf
Hamida Rebai Trabelsi
 
PDF
Conteneuriser une application .NET 8 en utilisant Docker et Azure.pdf
Hamida Rebai Trabelsi
 
DOCX
TechDayConf Edition 1 - 2020
Hamida Rebai Trabelsi
 
PPTX
Les nouveautés de Xamarin et Visual Studio App Center
Hamida Rebai Trabelsi
 
PDF
Xamarin notes- en français
Hamida Rebai Trabelsi
 
PPTX
Advices before starting a project
Hamida Rebai Trabelsi
 
PDF
Resume-REBAI.json
Hamida Rebai Trabelsi
 
DOCX
Detailed-Resume-Rebai-Hamida
Hamida Rebai Trabelsi
 
DOC
CV REBAI Hamida
Hamida Rebai Trabelsi
 
PDF
TechWadi-MENA-Guide-to-GES-2016-vf
Hamida Rebai Trabelsi
 
PDF
Preparing for Exam MTA 98-375 HTML5 App Development
Hamida Rebai Trabelsi
 
PDF
Microsoft Azure Fundamentals
Hamida Rebai Trabelsi
 
PDF
Microsoft Azure Fundamentals Websites
Hamida Rebai Trabelsi
 
PDF
Introduction to jQuery
Hamida Rebai Trabelsi
 
PDF
Creating Dynamic Webpages with Knockout
Hamida Rebai Trabelsi
 
PDF
Adding Style with CSS
Hamida Rebai Trabelsi
 
APIs In Action -Harnessing the Power of Azure API Management: Building Robust...
Hamida Rebai Trabelsi
 
Azure Spring Clean 2024 event - Azure API Management: Architecting for Perfor...
Hamida Rebai Trabelsi
 
Streamlining Workflows: Unleashing Automation with Azure and Power Automate
Hamida Rebai Trabelsi
 
Configurer GitHub Actions avec Docker et DotNET 8.pdf
Hamida Rebai Trabelsi
 
Build containerized application using Docker and Azure.pdf
Hamida Rebai Trabelsi
 
Conteneuriser une application .NET 8 en utilisant Docker et Azure.pdf
Hamida Rebai Trabelsi
 
TechDayConf Edition 1 - 2020
Hamida Rebai Trabelsi
 
Les nouveautés de Xamarin et Visual Studio App Center
Hamida Rebai Trabelsi
 
Xamarin notes- en français
Hamida Rebai Trabelsi
 
Advices before starting a project
Hamida Rebai Trabelsi
 
Resume-REBAI.json
Hamida Rebai Trabelsi
 
Detailed-Resume-Rebai-Hamida
Hamida Rebai Trabelsi
 
CV REBAI Hamida
Hamida Rebai Trabelsi
 
TechWadi-MENA-Guide-to-GES-2016-vf
Hamida Rebai Trabelsi
 
Preparing for Exam MTA 98-375 HTML5 App Development
Hamida Rebai Trabelsi
 
Microsoft Azure Fundamentals
Hamida Rebai Trabelsi
 
Microsoft Azure Fundamentals Websites
Hamida Rebai Trabelsi
 
Introduction to jQuery
Hamida Rebai Trabelsi
 
Creating Dynamic Webpages with Knockout
Hamida Rebai Trabelsi
 
Adding Style with CSS
Hamida Rebai Trabelsi
 

Recently uploaded (20)

PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PPTX
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 
PPTX
An Introduction to ZAP by Checkmarx - Official Version
Simon Bennetts
 
PPTX
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPT
MergeSortfbsjbjsfk sdfik k
RafishaikIT02044
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PPTX
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PPTX
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PPTX
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
PDF
Executive Business Intelligence Dashboards
vandeslie24
 
DOCX
Import Data Form Excel to Tally Services
Tally xperts
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PPTX
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 
An Introduction to ZAP by Checkmarx - Official Version
Simon Bennetts
 
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
MergeSortfbsjbjsfk sdfik k
RafishaikIT02044
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
Executive Business Intelligence Dashboards
vandeslie24
 
Import Data Form Excel to Tally Services
Tally xperts
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 

White Paper : ASP.NET Core AngularJs 2 and Prime

  • 1. ASP.NET Core Visual Studio 2017 White papers By Hamida REBAI Cross-Platform Framework
  • 2. Goal With this you will be able to understand ASP.NET Core and Angular 2.0 to build powerful and dynamic applications from the scratch and guide you to cutting-edge web development.
  • 3. Agenda • .NET Core is ? • Getting Ready
  • 4. .NET Core is … • A reimplementation of the .NET framework. • Multi-platform, with applications that can be Written, compiled and executed on Windows, Linux and MacOS. • Open-source, hosted on GitHub and open to community contributions. (https://github.com/dotnet/core) • Modular, where each API is distributed in an independent NuGet package. • The ability to create MVC ASP sites and Web APIs • Quick to get started with simple command-line utilities. • Compatible with traditional .NET Framework and .NET Xamarin through .NET Standard. • Powerful: .NET Core-based websites are faster than those based on the .NET Framework.
  • 5. Getting Ready Windows • Preparing the workspace Download Visual Studio 2017 .NET Core tools are included in Visual Studio 2017..NET Core for Visual https://www.visualstudio.com/thank-you-downloading-visual- studio/?sku=community Install the .NET Core workload Make sure you installed the workload ".NET Core cross-platform development". You can check and install workloads by launching the Visual Studio Installer.
  • 6. Getting Ready MacOS Preparing the workspace Install Pre-requisites • Homebrew and OpenSSL After installing brew, do the following: .NET Core SDK for OS X https://go.microsoft.com/fwlink/?linkid=843444
  • 7. Getting Ready Linux • Set up the apt-get that hosts the packages • Install .NET Core SDK • Introduction to the .NET CLI • Test that you have you .NET installed by going to command line or terminal and typing :  dotnet https://www.microsoft.com/net/core#linuxredhat
  • 8. Getting Ready • Install JavaScript runtime built NodeJs.js • https://nodejs.org/en/
  • 9. Setting up the project • Open Visual Studio 2017, Click on File / New / Project and select the project template Visual C# / .NET Core / Console App (.NET Core). • From the Templates tree, expand the Visual C# node and select the Web • subfolder: the right section of the modal window will be populated by a number • of available project templates
  • 10. Setting up the project
  • 11. Setting up the project • Select the ASP.NET Core Web Application (.NET Framework) template and fill in the relevant Name, Location, and Solution name fields. • In the next modal window, we can further customize our template by choosing the default contents to include in our project (Empty, Web API, or Web Application) and the authentication mechanism, should we want to use one. • Choose Web API and No authentication, then click the OK button to create the project.
  • 15. Package and resource managers • In Visual studio 2015: • The solution's projects are now created in a /src/ folder by default. This is just a convention, though, as they can be placed anywhere. • There is a new folder called wwwroot, which will contain the compiled, ready-to publish contents of our application, while everything else will be the project source code.
  • 16. Package and resource managers • In Visual studio 2017: • The solution's projects are now anymore created in a /src/ folder, it’s like before under the project directory. Different. • There is a new folder called wwwroot, which will contain the compiled, ready-to publish contents of our application, while everything else will be the project source code. The same. • Dependencies are the References used in our project and it’s ordered by SDK and Nuget.
  • 17. Package and resource managers • Startup.cs • This class was introduced in OWIN-based applications to replace most of the tasks previously was handled in Global.asax. • In ASP.NET Core this class serve for the same role, it is the place where we can add services, choose which application modules and middleware functions to load, handle dependency injection tasks, and configure the pipeline. • Gloabal.asax of today named Startup.cs has been completely rewritten to be as pluggable and lightweight as possible, meaning that it will include and load only what's strictly necessary to fulfill our application's tasks.
  • 18. Testing the HTTP request pipeline • If we run our application again, we should now be welcomed with the following:
  • 19. Adding Angular 2 • For new project • Create JavaScript Services project
  • 21. Launch angular project • If you have already a project you can force the creation like this : • dotnet new angular –all
  • 22. PrimeNG • PrimeNG is a collection of rich UI components for Angular 2. PrimeNG is a sibling of the popular JavaServer Faces Component Suite, PrimeFaces.
  • 23. Add PrimeNG - package.json
  • 24. Add PrimeNG – webpack.config.vendor.js
  • 25. Add PrimeNG – webpack.config.vendor.js PrimeNg does not support pre-rendering so in ..ViewsHomeIndex.cshtml, change: <app asp-prerender- module="ClientApp/dist/main- server">Loading...</app> to: <app>Loading...</app>
  • 26. Install webpack • npm install -g webpack
  • 27. Update webpack.config.vendor.js • We modified the webpack.config.vendor.js file (to add PrimeNg and Font Awesome) but it is not updated by the classic build process. • So, We have to run its configuration manually whenever we alter it. • In a command prompt, at the project root, run: • webpack --config webpack.config.vendor.js
  • 28. Add new page HTML • Create a folder called prime in the components folder and add the following code to ..ClientAppappcomponentsprimeprime.component.html:
  • 29. Add new TS file • Create the file and add the following code to ..ClientAppappcomponentsprimeprime.component.ts:
  • 30. Update app.module.ts Update the file at: ..ClientAppappapp.module.ts to add:
  • 31. Update navmenu.component.html • Add the following code to ..ClientAppappcomponentsnavmenunavmenu.component.html: