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 Angular Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
Angular Cookbook

Angular Cookbook

By : Muhammad Ahsan Ayaz
4 (13)
close
close
Angular Cookbook

Angular Cookbook

4 (13)
By: Muhammad Ahsan Ayaz

Overview of this book

Angular has long been the framework of choice for web development projects of various scales, offering much-needed stability and a rich tooling ecosystem for building production-ready web and mobile apps. This recipe-based guide ensures high performance apps with the latest version of Angular, helping you to build up your Angular expertise with a wide range of recipes across key tasks in web development. In this second edition, the recipes have been updated, added, and improved based on developer feedback, new challenges, and Angular 17. The first few chapters will show you how to utilize core Angular concepts such as components, directives, and services to get you ready for building frontend web apps. You’ll then develop web components with Angular and go on to learn about advanced concepts such as dynamic components loading and state management with NgRx for achieving real-time performance. Later chapters will focus on recipes for effectively testing your Angular apps to make them fail-safe, before progressing to techniques for optimizing your app’s performance. Finally, you’ll create Progressive Web Apps (PWA) with Angular to provide an intuitive experience for users. By the end of this book, you’ll be able to create full-fledged, professional-looking Angular apps and have the skills you need for frontend development.
Table of Contents (16 chapters)
close
close
14
Other Books You May Enjoy
15
Index

Using Cypress bundled packages

Cypress provides a bunch of bundled tools and packages that we can use in our tests to make things easier, not because writing tests with Cypress is otherwise hard but because these libraries are used by many developers already and so they’re familiar with them. In this recipe, we’re going to look at the bundled jQuery, Lodash, and Minimatch libraries to test some of our use cases.

Getting ready

The app that we are going to work with resides in start/apps/chapter11/ng-cy-bun-pack inside the cloned repository. However, the e2e tests are in the folder start/apps/chapter11/ng-cy-bun-pack-e2e. And in the recipe, we’re going to modify files for the e2e project only. Let’s run the e2e tests by following these steps:

  1. Open the code repository in your code editor.
  2. Open the terminal, navigate to the code repository directory, and run the following command to run the e2e tests for the project:
    npm run...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

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