This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// After runing tests this error occur: | |
// Template parse errors: | |
// 'app-main-page' is not a known element: | |
// 1. If 'app-main-page' is an Angular component, then verify that it is part of this module. | |
// 2. If 'app-main-page' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ( | |
// Solution below | |
// Code from: 'app.component.spec.ts' | |
import { TestBed, async } from '@angular/core/testing'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to add Font Awesome @fortawesome/fontawesome-free to an Angular project? | |
1) Go to the project directory | |
2) Install Font Awesome as said on their website: | |
https://fontawesome.com/how-to-use/on-the-web/setup/getting-started?using=web-fonts-with-css | |
through npm: npm install --save @fortawesome/fontawesome-free | |
Use '--save' not '--save-dev' | |
3) Add Font Awesome to 'styles' in 'anguler.json': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use a @HostListener described here: | |
https://stackoverflow.com/questions/41304968/how-to-get-on-scroll-events | |
Examples: | |
https://plnkr.co/edit/jZEmvMVAJ0XoU0eL6dgp?p=info | |
https://plnkr.co/edit/5cs8oMraePEos0xEJbh8?p=preview | |
I used the second one last time I did it. | |
Don't forgt to import @HostListener: | |
import { HostListener } from '@angular/core'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Check out this solution: | |
https://generatepress.com/forums/topic/shadow-under-nav-bar/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/7591240/what-does-dot-slash-refer-to-in-terms-of-an-html-file-path-location |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://msdn.microsoft.com/fr-fr/library/aa767737%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The answer can be found here: | |
https://ihatetomatoes.net/how-to-remove-experimentaldecorators-warning-in-vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Solution: | |
https://stackoverflow.com/questions/14310154/how-do-i-set-the-background-color-of-targeted-text-only-using-only-css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A great description here: | |
https://angular.io/guide/feature-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/19733447/bootstrap-navbar-with-left-center-or-right-aligned-items |
OlderNewer