Questions tagged [angular5]
Questions about Angular version 5, the web framework from Google. Use this tag for Angular questions which are specific to only version 5. Use tag Angular for any Angular questions which are not specific to an individual version.
angular5
6,540
questions
7
votes
3
answers
10k
views
Angular 5 webpack compilation error
After upgrading to Angular 5 and Cli 1.5, on ng serve I am getting an error:
ERROR in ./node_modules/@stomp/ng2-stompjs/index.ts
Module build failed: Error: ...\project\node_modules\@stomp\ng2-...
2
votes
1
answer
863
views
Angular 5: Warning a promise was rejected
I have just installed Angular 5 with angular-cli:
In the new app the following warning is spitted in console.
Don't know the reason why?
h1.js:25 Warning: a promise was rejected with a non-error: [...
35
votes
14
answers
55k
views
cannot determine the module for component angular 5
I'm getting following error when I build the Angular app using "ng build --prod". This is working when I build with Angular 4 and getting error with Angular 5. With Angular 5 "ng serve" is working ...
6
votes
1
answer
5k
views
When updating to Angular 5 I'm getting error: Critical dependency: the request of a dependency is an expression
Previously my app was working with Angular 4.4.6. I followed the guide
https://angular-update-guide.firebaseapp.com/ to update to Angular 5. I used this:
npm install @angular/animations@'^5.0.0' @...
9
votes
1
answer
2k
views
After upgrading to angular 5 webpack command is failing
My project was running on dot net core 2.0 with angular 4.2.
I update it to latest angular (5.0.0).
Since then, exception is thrown at this line in a startup.cs Configure method.
app....
31
votes
2
answers
28k
views
Migrating Angular 4.x to Angular 5 [duplicate]
I have read the following blogs and documentation
Angular Blog
Alligator IO Docs
Official Documentation
and no clear information about how to migrate from 4.x to 5.
Tried the following commands
...
4
votes
1
answer
17k
views
Opening dialog from another dialog with Angular Material and Safari
Please take a look at the following app:
https://stackblitz.com/edit/angular-1qxhep
I'm trying to open a dialog from within another dialog. The shared example works fine in Chrome but it doesn't ...
39
votes
6
answers
50k
views
How to update / upgrade from Angular 4 to Angular 5+
I need to update my project from Angular 4 to Angular 5+ ,
I need to change all following dependencies to Angular 5+.
I also updated Angular CLI to 1.5.0.
I tried to create new project but it seems to ...
2
votes
1
answer
2k
views
Angular Material 2 .mat-ink-bar not showing in mat-tab-nav-bar
When I use the Angular Material 2 with md-tab-group, the mat-ink-bar shows up correctly and I can style it by using the .mat-ink-bar class.
But when I use mat-tab-nav-bar and router, the ink bar ...
40
votes
9
answers
53k
views
Update to Angular 5
How to update to Angular 5?
This is from my package.json:
"dependencies": {
"@angular/animations": "5.0.0",
"@angular/common": "5.0.0",
"@angular/compiler": "5.0.0",
"@angular/core": "...
6
votes
3
answers
4k
views
Angular 5 and NPM
Is it possible to install Angular 5 dependencies(currently in RC stage) using npm?
This command shows no Angular 5 dependencies:
npm show @angular/core@* version
Or is it possible to download it ...
27
votes
2
answers
43k
views
Angular 2 / Angular 4 : How can I access file from the local system location?
I have one JSON file at the following location in my system:
/etc/project/system.json
I'm trying to access this file using my system path but it's not working. However it's working fine if i put this ...
13
votes
2
answers
29k
views
Inject Style Declarations Using Hostbinding in Angular
Do you guys know how I can batch inject style declarations in a component using the @HostBinding decorator?
What I am trying is:
@HostBinding('style')
get style(): CSSStyleDeclaration {
return {
...
7
votes
3
answers
13k
views
How can I disable AOT in angular2?
I got something like this:
ng build --prod --no-aot
But I am not able to understand what is the difference between
ng build --prod
and
ng build --prod --no-aot
13
votes
2
answers
26k
views
How to perform DOM manipulation in Angular components?
How do we get hold of DOM elements in Angular (Version 2.x and above)? The basic functions like addClass, removeClass etc are not availble in typescript so how do we do these DOM manipulations in ...