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
2
votes
4 answers

Angular 6 custom validation return type

I have this code in my project for custom validation but I am unable to understand what does: (group: FormGroup) => ValidationResult mean here? I understand: (group: FormGroup) means return type but then what does => ValidationResult mean…
Mrug
  • 481
  • 1
  • 6
  • 21
2
votes
1 answer

How to handle bootstrap-daterangepicker in angular component unit test?

I am trying to write a unit test of an angular 6 component which is initializing the bootstrap-daterangepicker in the ngAfterViewInit() method. When I run my unit test it gives the following error: TypeError: $(...).daterangepicker is not a…
2
votes
0 answers

Resizable sidenav using angular Material(7) & angular 7

My requirement is resizable/customizable sidenav, here is angular js demo [Codepen](https://codepen.io/Reklino/pen/raRaXq) I want to implement exact same thing using Angular(Version 7) & Angular Material(Version 7). In angular material 7 sidenav…
Sayan
  • 481
  • 5
  • 12
2
votes
0 answers

How to achieve two way data binding in case of dynamic loading of child component using ComponentFactoryResolver

I am adding child component dynamically using ComponentFactoryResolver and able to using ngModel in the child component but it's working as a one way data binding rather than two way. I tried by adding child component tag and it's working but in my…
swarup
  • 159
  • 3
2
votes
1 answer

Angular drop down with adjustable multiple columns

I need a drop down for angular 6/7 with adjustable multiple columns as shown below, Where I should be able to adjust the width of the columns by dragging. I googled but I couldn't find a proper library. If there is any library where I can overcome…
Rishanthakumar
  • 871
  • 10
  • 20
2
votes
1 answer

Injecting Rollbar in Angular 6

I am trying to use Rollbar in Angular 6. Here is my code in the relevant code in the root module, app.module.ts: const rollbarConfig = { accessToken: '', captureUncaught: true, captureUnhandledRejections: true, }; export…
Adam
  • 43,763
  • 16
  • 104
  • 144
2
votes
4 answers

How to highlight column in table angular 6

Im trying to highlight entire column in table on hover. Can someone help me how I can achieve this in angular2+ I need exactly like the below image reference image
D C
  • 708
  • 1
  • 6
  • 17
2
votes
1 answer

Change focus to a form filed in angular 6

I am creating a crud application in angular. I want the username to be unique and want to throw an error if the username is not unique and then place the cursor at the username field. I am able to throw the error and notify the user but I'm unable…
rock11
  • 718
  • 4
  • 17
  • 34
2
votes
0 answers

Disconnection with Strophe.js

I am using typescript, angular6 and strophe.js(xmpp) for web application. Initially Strophe works fine and establishes connection, but after sometime(10 to 15 minutes later) it disconnects and establishes connection only after page refresh. Is there…
2
votes
1 answer

Can't resolve all parameters for Application Module: (?). at syntaxError (compiler.js:1021) site:stackoverflow.com

After downgrading my Angular project from version 7 to 6 and integrating Angular Universal with the help of @ngToolkit, I'm getting the following error message in the browser console: Can't resolve all parameters for Application Module: (?). at…
Alexander Belokon
  • 1,452
  • 2
  • 17
  • 37
2
votes
4 answers

How to add prefix +6 in input when user click on the input text

I am using angular material(https://material.angular.io/components/form-field/overview) for input. I want to auto add '+6' when user click on the field to insert phone number Currently the '6' prefix only display in front of the…
Firdaus
  • 143
  • 5
  • 22
2
votes
4 answers

How can I navigate to an internal page using [routerLink] and target="_blank" without reload?

I'm trying to navigate to an internal page using [routerLink] and target="_blank" without having the entire app reload. I can get the page to load in another tab but the entire application reloads. HTML:
Matt K
  • 61
  • 1
  • 7
2
votes
1 answer

How to get a proper error message when SFTP host is invalid

I wrote a function in Laravel to test an SFTP connection with user-supplied server credentials. This function works fine and shows an appropriate message regarding connection status. public function testConnection(Request $request) { $data =…
Anoop Sankar
  • 619
  • 5
  • 16
2
votes
1 answer

Add icon to right side corner of mat-menu using Angular 6

I am using mat-menu .
ananya
  • 1,001
  • 6
  • 33
  • 50
2
votes
2 answers

Object(...)(...).takeUntil is not a function

I have my observable with interval and takeuntil which is working fine in angular 5. Now When I update it to angular 6 and rxjs6, it is failing. I changed from Observable.interval to interval but takeuntil is not working. I need takeuntil because,…
indra257
  • 66
  • 3
  • 24
  • 50
1 2 3
99
100