Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Effective Angular
  • Table Of Contents Toc
Effective Angular

Effective Angular

By : Roberto Heckers
4.6 (12)
close
close
Effective Angular

Effective Angular

4.6 (12)
By: Roberto Heckers

Overview of this book

Angular is an open-source, front-end framework used to build web applications using TypeScript. Angular is a component-based framework, which means you build apps by developing and composing reusable components. This framework has all the built-in features needed to develop complex, feature-rich web apps. Written by an Angular specialist working with some of the top companies in the Netherlands, this book teaches you how to harness the full potential of the Angular framework. You’ll explore different front-end architecture designs and set up a scalable environment for Angular applications and libraries using Nx, before taking a deep dive into the framework's newest and most powerful features. Next, you’ll learn to manipulate the Document Object Model (DOM) with Angular directives, pipes, and animations, and build reusable components like a pro. The book spotlights best practices and flags potential pitfalls at every step of the way. You’ll also learn design patterns that fit well when using the Angular framework, reactive programming with RxJS and Angular signals, and how to manage application states effectively. The book teaches you about accessibility, testing, and optimizing your app for deployment. By the end of this book, you’ll be able to use Angular effectively to build enterprise-ready, scalable front-end applications.
Table of Contents (18 chapters)
close
close
Lock Free Chapter
1
Part 1:Angular Basics and Setting Up Scalable Nx Workspaces
6
Part 2:Handling Application State and Writing Cleaner, More Scalable Code
11
Part 3:Getting Ready for Production with Automated Tests, Performance, Security, and Accessibility

Creating forms dynamically

Creating a good form requires quite a bit of code. Regardless of whether you’re using the template-driven or reactive approach, you need a lot of HTML; you need to define the model, add validators, and additional logic such as the submit behavior.

You could use a base class for some of the shared functionality, but you can also build a dynamic form, which will dynamically build the form based on a JSON input. In this section, we will build a simple example of a dynamic form. You can extend the dynamic form to fit your specific needs. For example, you might want to fetch the configuration from an external source or support additional validators.

To start our dynamic form, create a new form component named dynamic-form in your expenses-registration-forms library. Next, create a dynamic-control.interfaces.ts file. I will create the new interface inside the component folder, but you can locate all interfaces in a designated folder or use any other...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Effective Angular
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon