Questions tagged [angular-compiler]
98 questions
0
votes
1 answer
Does the Angular Compiler optimize string expressions?
I have the following code snippet:
"foo".length > 0 ? true : false;
Does the Angular compiler replace it just with true?
tsc does not do; I tried it out.

daflodedeing
- 319
- 3
- 11
0
votes
0 answers
Angular compile scss on html change
I want to know if there is a way to tell the Angular compiler to compile a components style file when the template file is modified?
For example, when I change app.component.html then app.component.scss should also be compiled.
The reason is, I want…

Yusuf Ipek
- 166
- 1
- 11
0
votes
0 answers
After updating to Angular 14 compiling never happens
Something wrong with scss compiling. I tried to replace node-sass with sass but it didn't help. Don't even know where to start to explore to solve this problem. It worked well with version 12, but after update to 13 and 14 it doesn't. Is there any…

Alexandr1919
- 55
- 5
0
votes
1 answer
Angular - 8 - Trouble with npm-install - Error
after moving my App to another computer I have trouble with runing npm-install. Here is a content of my package.json:
{
"name": "lunaticgodsinfo",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng…

rufo123
- 53
- 6
0
votes
0 answers
Do I need -moz- and -webkit- in an angular project or does angular compile the css to a format readable by any browser?
I know Angular compiles code and serves it as html, javascript and css. So my question is: Do I need -moz- and -webkit- in an angular project or does angular compile the css to a format readable by any browser?

YulePale
- 6,688
- 16
- 46
- 95
0
votes
1 answer
Angular: Overriding DatePipe in node_module components
Problem: I have an external library in my angular app with components. Some of this components use Angular DatePipe internally to transform dates in the 'shortDate' format. I don't really have the option to use any other component or implement a…

André Pereira
- 31
- 1
0
votes
1 answer
Can't bind to "attribute" && "app-component" isn't a known element
I've a HUGE problem. The entire thing started with this: Fix corrupted HTML file or decompile Angular Component
My PC suddently crashed and from that event it become worse every second. I get weird errors such as "'app-component' is not a known…

Pietro Lungarini
- 103
- 2
- 12
0
votes
1 answer
I have a problem with components in angular
Hello I'm newbie in Angular and took a course in this framework and I have a problem with an error nd I don't understand how to fix it.
import {Component } from '@angular/core';
code:
@Component{{
selector: 'contador-app',
}}
//se le pone export…

Jaime Wrighton
- 3
- 4
0
votes
0 answers
How export @ptkdev/webcomponent-instagram-widget in Angular module?
I'm just trying to export '@ptkdev/webcomponent-instagram-widget' in Angular module, but I don't know how. I have tried everything.
Do you have an idea?
The component is working, but when I compile the project It shows an error because I'm using…

Justo Herrero
- 41
- 5
0
votes
0 answers
Edit typescript before angular compiler
I want to strip a ts code before angular compiler.
Here is how it looks like before the compilation:
...
/* prod:start */
const title: string = "Production title!"
/* prod:end */
/* dev:start */
const title: string = "Dev title!"
/* dev:end…

rkalita
- 575
- 4
- 16
0
votes
1 answer
Angular environment files do not get swapped in time
I am using Angular 9, View Engine compiler.
I have 2 files where I store environment values:
environment.ts:
export const environment: any = {
production: false,
};
environment.prod.ts:
export const environment: any = {
production:…

mcvyty
- 13
- 4
0
votes
1 answer
How can I get a Countdown Timer to work in Angular 10
I am attempting to create an Angular-Nativescript shared app that executes some function when a timer reaches zero.
I would also like the timer to restart/reset when the end value is changed.
In Angular 9, this functionality was working with the…

Roland
- 85
- 3
- 11
0
votes
2 answers
Configuring angular production files after build
I have an angular 9 project which is part of an application suite installer [Wix installer]. One of the settings used by the angular app is the address of API which it fetches its data from some configurable address. I know that I can have many…

MHOOS
- 5,146
- 11
- 39
- 74
0
votes
1 answer
ERROR Error: Uncaught (in promise): Error: Runtime compiler is not loaded Error: Runtime compiler is not loaded
I'm trying to use AOT compilation using ng build --prod. I don't know what I'm doing wrong.
Project Url- https://github.com/nishant1596/sampleAOT
Please Help, Thanks in advance

Nishant soni
- 41
- 3
- 9
0
votes
1 answer
Angular: library upgrate to Angular9 with ngcc build error for the demo-app
I'm maintaining an Angular library, which is generated by Angular Cli. Inside the workspace there is a library and a demo-app, which is a standard architecture for all of Angular libray created from angular-cli.
Currently I'm upgrading my library…

Chris Bao
- 2,418
- 8
- 35
- 62