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.

Questions about Angular version 5, the web framework from Google.

You can read more about Angular version 5 here

You can find Angular version 5 official documents here

6545 questions
50
votes
5 answers

Problems with flask and bad request

I was programming myself a pretty nice api to get some json data from my gameserver to my webspace using json, but everytime i am sending a request using angular i am getting this: 127.0.0.1 - - [20/Mar/2018 17:07:33] code 400, message Bad request…
Lars Erhardt
  • 529
  • 1
  • 5
  • 8
50
votes
8 answers

No provider for ControlContainer - Angular 5

I am converting a purchased, third-party template into an Angular 5 app, and just ran into an error. I am very new to Angular 5 (I know AngularJS well however) and don't understand what it's trying to tell me? It seems to be related to a button…
Todd Davis
  • 5,855
  • 10
  • 53
  • 89
49
votes
6 answers

How to reload or refresh only child component in Angular 8

I have two components, One parent and Other Child. HTML Part
49
votes
4 answers

angular 5 template forms detect change of form validity status

are reactive forms the way to go in order to have a component that can listen for changes in the validity status of the form it contains and execute some compoment's methods? It is easy to disable the submit button in the template using templateRef…
Cec
  • 1,726
  • 3
  • 18
  • 31
48
votes
7 answers

Set value of programmatically

I'm trying to set the value of 2 fields and programmatically. For text input everything works as expected however for the on the view this field is just like it would have a value of null. But if I would…
47
votes
3 answers

Angular 5, NullInjectorError: No provider for Service

Hello im trying to implement firestore into my web application, when i add the service to contructor the error: NullInjectorError: No provider for TesteventService! I'm using Angular 5, angularfire2/firestore and typescript…
Mr. Toast
  • 1,719
  • 4
  • 10
  • 13
47
votes
3 answers

Angular 5 internationalization

I'm building an application using the latest Angular5 and what I need is for a user to be able to switch languages. I've never had to implement this in an Angular2+ (actually I'm using Angular5). I need to set translations in two…
Rob
  • 6,819
  • 17
  • 71
  • 131
45
votes
5 answers

CommonModule vs BrowserModule in angular

I am pretty new to the world of Angular. What is the difference between CommonModule vs BrowserModule and why one should be preferred over the other?
Pritam Bohra
  • 3,912
  • 8
  • 41
  • 72
45
votes
2 answers

How to call JavaScript functions from Typescript in Angular 5?

I'm working on PDF Viewer development in Angular 5. I'm done with writing HTML code for the UI part. Now I've JavaScript files that provide functionality for the UI elements. As Angular 5 supports typescript for implementing functionality for UI…
Ravi
  • 1,614
  • 4
  • 14
  • 27
44
votes
9 answers

Uncaught (in promise): Error: StaticInjectorError(AppModule)[options]

I have a strange error. Usually (I did my googling), in this case of errors Angular specifies in square brackets which exactly module/service/provider/etc caused the problem. However here, it says only options. I tried adding HttpClientModule,…
techkuz
  • 3,608
  • 5
  • 34
  • 62
44
votes
5 answers

How to listen for value changes from class property TypeScript - Angular

In AngularJS, we can listen variable change using $watch, $digest... which is no longer possible with the new versions of Angular (5, 6). In Angular, this behaviour is now part of the component lifecycle. I checked on the official documention,…
43
votes
7 answers

How to create a url string with query parameters from an object in Angular 5+?

I am trying to create a URL from an object in an Angular 5 SPA. My code looks like the following: import { UrlTree, UrlSegmentGroup, DefaultUrlSerializer, UrlSegment } from "@angular/router"; const urlTree = new UrlTree(); urlTree.root = new…
Alexei - check Codidact
  • 22,016
  • 16
  • 145
  • 164
43
votes
2 answers

Catch error in combined pipe of pipeable rxjs operators

We've just upgraded one of our applications to Angular 5, and started to transition into lettable operators as introduced in rxjs v5.5. Because of this, we have rewritten our observable pipelines to the new syntax with the .pipe() operator. Our…
Daniel B
  • 8,770
  • 5
  • 43
  • 76
42
votes
4 answers

angular router navigate then reload

So I want to reload the app after navigating to a specific route .. I use router.navigate to navigate to certain route based on user role and that works fine but I have to reload the page after routing if coming from sign in page (not every time…
Omar Abdelhady
  • 1,528
  • 4
  • 19
  • 31
42
votes
1 answer

Receive AccessDenied when trying to access a reload or refresh or one in new tab in angular 5

For a while, I was simply storing the contents of my website in a s3 bucket and could access all pages via the full url just fine. I wanted to make my website more secure by adding an SSL so I created a CloudFront Distribution to point to my s3…
Avinash Dalvi
  • 8,551
  • 7
  • 27
  • 53