What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-08 14:11:12
create new angular project specific version
//You cannot using CLI //Better install a specific version of Angular in a folder: $ npm install @angular/[email protected] //for anngular 5 for example //And then $ ng new angular_5_app //or change angular/cli and angular versions in the package.json Add solution -
Javascript 2021-10-26 00:57:04
how to import scss file in angular
In the new angular v6, importing sass files is a little different from the previous version. I just needed to import like this (in a component stylesheet) @import "~src/sass/variables"; // note: without file extension Now everything works ... Add solution -
Go 2021-08-26 10:51:02
Expected 2 arguments, but got 1.ts(2554) core.d.ts(7888, 47): An argument for 'opts' was not provided.
This is because there is a synthax change in the new angular version. @ViewChild("password", { static: true }) password: ElementRef; @ViewChild("confirmPassword", { static: true }) confirmPassword: ElementRef; Add solution