From the course: Learning the Angular CLI

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Adding application assets

Adding application assets - Angular Tutorial

From the course: Learning the Angular CLI

Start my 1-month free trial

Adding application assets

- [Narrator] Let's take a look now at adding application assets in libraries. Head over to the angular.json file and inspect the assets array. Here we connect files or folders that we want to copy during a build of our application. By default the assets folder and the favicon file are listed here. In the assets folder under source is where you want to place things like images, icons, locale files and any other files that you want to copy over. Let's place an image inside the assets folder. We can go ahead and grab the sample image from the exercise files and simply drag it in. Let's grab the LinkedIn logo that PNG file and drag it to the assets folder. Let's run a build of our application now. we can do that by running ng build. Once that is done, we can see that there's now this folder here, we can go ahead and inspect the assets folder and the logo is placed there. This is really useful because you only need to use…

Contents