Reader small image

You're reading from  Next-Level UI Development with PrimeNG

Product typeBook
Published inMar 2024
PublisherPackt
ISBN-139781803249810
Edition1st Edition
Right arrow
Author (1)
Dale Nguyen
Dale Nguyen
author image
Dale Nguyen

Dale Nguyen is a skilled full-stack developer with a passion for technology. With years of experience in the industry, he has made significant contributions to agencies, education, finance, and travel sectors. Drawing from years of professional experience, Dale's expertise lies in Angular development. His dedication to staying updated with the latest advancements in Angular allows him to consistently deliver exceptional results. Proficient in multiple programming languages and tools, Dale is known for his ability to handle complex projects, with his advanced skills making him an invaluable asset to his employers and colleagues.
Read more about Dale Nguyen

Right arrow

Creating the layout of the website

Once we have the initial idea for our website, it becomes relatively straightforward to transform those sections into Angular components. Let’s have a look at the following transformation:

Figure 14.4 – Breaking down sections into Angular components

Figure 14.4 – Breaking down sections into Angular components

As depicted in the figure, each section is distinct and can be readily mapped to an Angular component. For instance, the header section can be assigned to header.component.ts. By following this approach, we can establish the following code structure as an illustrative example:

// app.component.ts
<primebook-header />
<primebook-hero />
<primebook-features />
<primebook-testimonials />
<primebook-footer />

Each selector represents the corresponding section in our sketch or design.

It’s pretty simple to get started to create those components by running the following command:

primengbook$ ng g c header --inline-template...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Next-Level UI Development with PrimeNG
Published in: Mar 2024Publisher: PacktISBN-13: 9781803249810

Author (1)

author image
Dale Nguyen

Dale Nguyen is a skilled full-stack developer with a passion for technology. With years of experience in the industry, he has made significant contributions to agencies, education, finance, and travel sectors. Drawing from years of professional experience, Dale's expertise lies in Angular development. His dedication to staying updated with the latest advancements in Angular allows him to consistently deliver exceptional results. Proficient in multiple programming languages and tools, Dale is known for his ability to handle complex projects, with his advanced skills making him an invaluable asset to his employers and colleagues.
Read more about Dale Nguyen