There are several ways you can add Global (Application wide styles) styles to the Angular application. The styles can be added inline, imported in index.html or added via angular-cli.json. The angular allow us to add the component specific styles in individual components, which will override the global styles. In this article we will learn how to add global CSS styles to angular apps. We will also learn how to add custom CSS files & external style sheet to angular application..
Learn how to Download and Install Visual Studio 2019 guide. First we will look at the System Requirement for Visual Studio 2019. Next we will show you how to download Visual Studio 2019 & Finally we will learn how to Install Visual Studio 2019.
In this article, we are going to see how to lazy load Angular Modules using the loadChilden method of the Angular Router. We will build an Angular lazy loading example app
The most apps need some sort of Runtime configuration information, which it needs to load at startup. For example, if your app requires data, then it needs to know the base location of your REST endpoints. This endpoints are not fixed and may have different values for development, testing & production.
The APP_INITIALIZER is an instance of InjectionToken. It is a built in Injection token provided by Angular. The Angular will execute the function provided by this token when the application loads. If the function returns the promise, then the angular will wait until the promise is resolved. This will make it ideal place to perform some initialization logic before the application is initialized.