Questions tagged [angular6]

Questions about Angular version 6, the web framework from Google. Use this tag for Angular questions which are specific to only version 6. Use tag Angular for any Angular questions which are not specific to an individual version.

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

You can read more about Angular version 6 here

You can find Angular version 6 official documents here

7869 questions
17
votes
2 answers

I am getting an ERROR when compiling Angular 6 project

when starting my project ng serve i get this error. updated my ts and did not help. here is the error ERROR in node_modules/@types/node/assert.d.ts(3,68): error TS1144: '{' or ';' expected. node_modules/@types/node/assert.d.ts(57,68): error…
Dias Zhumagaliyev
  • 351
  • 1
  • 2
  • 7
17
votes
6 answers

Angular component in a Browser's child window

From an Angular application is there any way that I can create a Browser's child window and show some predefined angular component in it. Clarification : I am not looking for a Modal dialog solution.
Shrikey
  • 858
  • 3
  • 11
  • 34
17
votes
2 answers

Pass multiple values to pipe in Angular 6

I need to create a search form in Angular 6 with pipe and must pass multiple arguments to pipe . nameSearch , emailSearch ,roleSeach , accountSearch and this my pipe : @Pipe({ name:…
Mr-Programer
  • 541
  • 3
  • 8
  • 21
17
votes
1 answer

Angular Material Tab add image to button

I'm beginner for the Angular. I try to do something with Angular material tab . I added the tab section to image but that part is not working. Does anyone know how to add a image to the angular material tab. Please have a look at my attached image…
core114
  • 5,155
  • 16
  • 92
  • 189
17
votes
1 answer

Passing for variable to ng-content

How do I pass an ngFor variable to the ng-content template. Example, the containing-component:
The nested content-component:
TKDev
  • 493
  • 1
  • 4
  • 19
17
votes
5 answers

How to hide placeholder onclick in material

I am using simple form-field input component as in below code On entering the input fieled by default the placeholder will go…
Shankar
  • 2,565
  • 8
  • 29
  • 56
17
votes
7 answers

Error when creating new project with Angular-CLI 6.1.2

I tried creating a new Angular project using ng new angular-6-boilerplate but I can't do it anymore with angular-cli latest version. I'm using terminal for windows to create my project but I got this error. Schematic input does not validate against…
17
votes
3 answers

Building angular application and putting on the server

I'm developing an angular6 application and I want to generate a build to test on my server, currently I use ng server and it runs working on my browser without generating any errors. c:\Users\emiry\Desktop\Angular\Projects\StartingNewProject when…
Emiry Mirella
  • 567
  • 1
  • 7
  • 21
17
votes
4 answers

Angular NoopAnimationsModule Type Error matches Element is not a function

I'm getting this error after importing NoopAnimationsModule for my Angular 6 app ERROR TypeError: this.driver.matchesElement is not a function at…
ThilanCosta
  • 171
  • 1
  • 5
17
votes
7 answers

Angular 6: Can't bind to 'formGroup' since it isn't a known property of 'form'?

I have worked with form builder in angular 2/4, But now I am using it in angular 6. I have seen this question (Can't bind to 'formGroup' since it isn't a known property of 'form') but it was for angular 2. I doing exact same against angular 4 but I…
17
votes
2 answers

Converting httpClient answer to model objects [Angular 6]

I have a question about the Angular 5 httpClient. This is a model class with a method foo() I'd like to receive from the server export class MyClass implements Deserializable{ id: number; title: string; deserialize(input: any) { …
Colja
  • 209
  • 1
  • 3
  • 11
17
votes
16 answers

Can not find module “@angular-devkit/build-angular”

Using npm, I followed the getting started directions on the Angular CLI quick start page. Angular CLI Quickstart Running ng serve --open after creating and going into my new project "frontend" gave this error: Could not find module…
Brandon Lumsden
  • 171
  • 1
  • 1
  • 6
17
votes
3 answers

Cannot upgrade to Angular 6, invalid range

I am upgrading to Angular 6 Following the upgrade guide, I encounter the following problem: > ng update @angular/core Invalid range: ">=2.1.0" ...and that's all I have. No other warnings, or any other description. In my project,…
ForestG
  • 17,538
  • 14
  • 52
  • 86
16
votes
3 answers

Difference between merge and mergeFields in Firebase Firestore

I can a data to the Firebase Firestore document through the following methods: 1) add() 2) set() I am very clear that how can i add data to Firestore, there is no confusion in it. But my question there is two setOption for the method 'set' in…
Dev
  • 1,308
  • 3
  • 13
  • 24
16
votes
4 answers

How to download a file from a url when a button is clicked in angular5 / 6

I have a url for ex: abc.net/files/test.ino The requirement is to download an .INO file through a button click event in angular 5 or 6
Rushan De Silva
  • 267
  • 2
  • 4
  • 12