Use Stack Overflow for Teams at work to find answers in a private and secure environment. Get your first 10 users free. .

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

How to change tabset nav-pills background colour using [ngClass] or customClass

I am using angular-7, I want to change the colour of tab depending on the validation, i have added customClass where i am checking if timesheet is valid or not, if it is invalid i want to change the ...
0
votes
0answers
17 views

How to fix this alert in ionic 3? When I click agree while form is empty it doesn't show errors of the form

I am trying to import EULA agreement alert before the user can successfully sign up. Before the alert implementation when user clicked sign up button with an empty field it throwed error with the ...
0
votes
1answer
25 views

Error in comparing two object in Angular/Typescript

I have the following variables in my Jasmine test tag1:Tag; tag2:Tag; tag3:Tag; supportedTagsArray:Array<Tag>; supportedTags: SupportedTags; They are objects of the following classes ...
0
votes
0answers
48 views

How to set focus list composed from div with *ngFor

in my angular 6 application I would like to focus list composed from div tag below: I have search box where in usertypes and auto populated div appears wherein if user selects any list it should focus ...
0
votes
0answers
13 views

How to set dynamic into view mode on save

I am using angular dynamic form and after filling the form, I would like to set the form into view mode(read-only). html: <dynamic-form [fields]="personal" (submit)="submit($event)"></...
-1
votes
0answers
12 views

Angular 6 From generation using component

In my application, there are multiple forms and each forms having so many input field. for the same, I have created a template-driven component for multiple time use but I am not able to pass ...
0
votes
1answer
15 views

language change / switch in angular typescript from a button

how can i change the language or switch language on a running project in angular 6 i want to change the language from English to Arabic or to some other language
0
votes
2answers
22 views

How to make use of an external Js file in .net core 2.1 and Angular 6

I am new to Angular 6 and .Net Core 2.1. I've created a some application but now I need to make use of jquery events. I have installed Jquery packages to node_modules as well. Could anyone please ...
0
votes
0answers
6 views

Fabricjs canvas not initialize in ng6 dynamic component load

i am Developing an image editor for which main-canvas on index page working fine. For navigator panel (clone of main-canvas objects) in small-canvas use a navigator component. But small-canvas not ...
0
votes
0answers
9 views

I want to use <emoji-mart> within a component that I'm dynamically inserting using ComponentFactoryResolver nor any click is working

This is in the parent component. I want to inject ChildComponent const factory = this.resolver.resolveComponentFactory(ChildComponent); const marker = factory.create(this.injector, [], ...
0
votes
1answer
16 views

how data binding works between ng-template and the context passed to the template using CreateEmbeddedView

I have this template. <ng-template #thumbnailTemplate let-context="thumbnailContext"> <div id="{{context.divId}}"> <img id="{{context.imgId}}" src="{{context.imgSrc}}"> ...
0
votes
1answer
29 views

naming style used by Javascript when creating properties whose value is an object

In my Angular code, I am creating an object as follows {thumbnailContext: new ThumbnailContext(divId, imgId, closeId, imageString,this.thumbnailContainerRef.length,null)} if ...
0
votes
1answer
17 views

Angular test execution seem to be going in infinite loop and crashing the karma browser

I am testing this function which is suppose to delete an EmbeddedViewRef from a ViewContainerRef. deleteThumbnail(thumbnailContext:ThumbnailContext){ console.log("delete thumbnail clicked with ...
0
votes
1answer
39 views

getting an undefined value in test case but not in production

When this function is called by my test case, I see that the value of index is undefined. delete thumbnail clicked with context {thumbnailContext: ThumbnailContext}thumbnailContext: ...
-1
votes
0answers
11 views

No option In my intellij ide for creating angular 6 project

I am new to Intellij and i want to create new angular 6 project but there is no such option in new project panel for same, so can anyone help me to this? Thank you
0
votes
1answer
21 views

how to patch value to ngx-mat-select-search in dynamic form array

how to set/patch value to ngx-mat-select-search drop .ngx-mat-select-searchused in dynamic form (form array) so form control name is similar to all dynamically created dropdown .how to set value for ...
0
votes
0answers
19 views

How to subscribe to error case in angular service unit testing

I am trying to subscribe to the response and as well the error case but when I see the coverage its not going to err case. I have the following fake service, My service, fakeService: { ...
0
votes
0answers
14 views

How to properly deploy angular 6 app on apache tomcat and fix whitelabel

I have a problem with fixing white labels on my app which is deployed on tomcat. I have to mention that HashLocationStrategy can't be used because of a few reasons. I know for pathLocationstrategy but ...
1
vote
1answer
25 views

Cannot find control with path: 'marketplace -> 1 -> marketplace'

I have some amount of marketplace in array . I want to show that in textbox and if I want to edit and add new textbox I have to do. for that I did like this <div class="field_group" formArrayName=...
0
votes
0answers
33 views

How to drag drop an angularJS element using selenium webdriver

I need to drag an element from one location to other using the selenium webdriver for angula6 element I have tried using Actions act = new Actions(driver); act.dragAndDrop(from, to).build().perform()...
0
votes
0answers
14 views

How to avoid left and right side dragging the map in openlayers?

I don't want to see the repeated world map. Initially it loads with one map, then I drag to left/right side it displays the duplicate maps. I want to avoid left/ right dragging like i don't want to ...
0
votes
1answer
24 views

Angular6: How to add border color to checkbox

I am trying to add border red on an unchecked condition for checkboxes but not working. It is based on .ng-touched.ng-invalid this class name. If it is not selected from the checkboxes then it should ...
0
votes
0answers
7 views

how to get ngx-material-timepicker selected time and insert into database

I want to add selected time from ngx-material-timepicker to mysql database Start Time * Start Time is required. <div class="col-sm-6"> <label for="Start ...
0
votes
1answer
25 views

Display fields using mat form field

I am working in angular. I have one response which is coming when I send event from rabbitmq. That response contains many attributes such as firsname, lastname,address. I want to display address in ...
0
votes
0answers
9 views

How to fix “ERROR TypeError: $$$ is not a function”

core.js:15723 ERROR TypeError: this.getArchivedValue is not a function at Object.push../src/app/person/components/yyyy/y getArchivedValue(item): boolean{ this.personService.checkOrganization(...
0
votes
1answer
12 views

Avoid displaying feature in the duplicate maps on left/right side dragging in openlayers?

I created feature to display in some co-ordinates near India. So I drag the map to left/right side there also we can see India again with that feature. I decide to display feature only once. Please ...
1
vote
2answers
34 views

How to go back to certain page with angular router (angular 6)?

In my application I have what you would call a homepage and a finish page. In between those pages there could be anywhere from 2 - 4 screen depending on user interaction. Once the user reaches the ...
1
vote
1answer
29 views

Angular 6 textarea resize event issue

I'm working on an Angular 6 application where I am having a textarea. On having an error, an asterisk sign should be displayed beside the textarea on the top-right corner. The issue I'm having is on ...
1
vote
5answers
45 views

Angular 6 component doesn't get parent styles

UPD: I wrote small code for example. How I can use all styles? I have errors if use that in .scss file for child component - import "~styles.scss"; It's meaning if we use bootstrap in project, then we ...
-1
votes
1answer
22 views

How to get object sub values in angular 6

I am trying to get object sub values but not working.I do not know where I did mistake from my code.Anyone can find the solution?I am trying to show li values from object. test.json: "main":[{ "...
0
votes
2answers
61 views

Cant navigate to specific page in Angular

I cant navigate o specific page in my angular app, in this case i want to navigate to (tabs/market-palce/fornecedores) from app.component.ts here my routing Modules. Error: Cannot match any routes. ...
0
votes
0answers
11 views

RangeError: Unsupported time zone specified undefined

The Rang error appear only when I have tried to create build of angualar universal project builtAtDate.toLocaleDateString('en-US', { ^ RangeError: Unsupported time zone ...
0
votes
0answers
35 views

Is it possible to integrate Stripe into a chrome extension

I am trying to integrate Stripe but facing the following issues. When I am loading normally via ngx-stripe, it's giving me this error in the console. Refused to load the script 'https://js....
-1
votes
0answers
15 views

How to connect both mongoDB and Google Firebase in node js

How to connect both mongoDB and Firebase database in nodejs. For web application i am using mongoDB and to mobile application i am using Firebase
0
votes
3answers
40 views

How to count total no of lines from .ts files

I have app folder and under that number of modules and components. I need to count only .ts files lines of code. So is there any plugin for VS Code or any other way please suggest?
1
vote
0answers
18 views

Angular - Encapsulate Lazy Style Bundle To Component

I have an angular 6 SPA application where there are 2 sections: Public & Private. all the public components are wrapped inside PublicAppWrapperComponent using children routes and the same for the ...
0
votes
1answer
31 views

How to play rtsp url in browser using angular6?

In my app, I have to play N number of videos on browsers. In addition, I had only rtsp URL with it's username and password. I had done some RND on that and I found that there are some media services ...
1
vote
0answers
13 views

Angular Filter Big Data Set Best Practices

I'm building up a filter feature to filter through a lot of products based on its prices, brands, rating, and so on. Multiple check boxes for these rules above. I'm just wondering what would be the ...
2
votes
0answers
27 views

Posting to WebAPI with Angular doesn't work once published to production

I am attempting to post JSON to a WebAPI with Angular 6. This works in my local environment but once I publish to Azure it no longer works. I am receiving a http 400 error and I cannot seem to figure ...
-1
votes
0answers
7 views

How to draw node charts and waterfall charts in d3 with Angular6

I need to draw node charts and water fall charts by using d3 with angular 6. Is there any example or please help me out how to draw this.
-1
votes
0answers
37 views

How to validate a dropdown list based on selection of another dropdown list angular 6 formarray [closed]

i have a form which creates dynamic nested form in that i have 2 drop downs one is from time and to time each drop down contains timings like 00:00 to 24:00 problem is to validate or show error ...
0
votes
0answers
27 views

dropdown validation without form tag in angular

validate dropdown for mandatory field without any form tag in angular 2,4,5,6. Could you please provide solution . i have tried using ng-model <span style="color:red" *ngIf="!selectedCountry">...
0
votes
0answers
7 views

How can i validate multiple patterns in angular 6?

I'm trying to validate multiple patterns in angular 6 application but it's not working ngOnInit() { this.registerForm = this.formBuilder.group({ firstName: ['', [Validators.required, ...
0
votes
0answers
15 views

Could not find index file for the project in angular6 application

I m trying to add PWA to my exisiting angular application. When i tried ng add @angular/pwa --project<project_name_in_package_json Throwing error as Could not find index file for the project ...
0
votes
0answers
42 views

BehaviorSubject keeps reseting inside lazy loaded module

I'm trying to implement a facade.service for a lazy loaded module. Stackblitz link facade @Injectable() export class TaFacadeService { private _state: TAState; private _store: BehaviorSubject&...
0
votes
0answers
11 views

Angular Binding does not work when I try to append angular component from Javascript

I am trying to print a DIV using window.print(). Given below is a sample of my code var printContents = document.getElementById('printcontent').innerHTML; var originalContents = document.body....
0
votes
0answers
15 views

WeChat - Feature policy violation: accelerometer is not allowed in this document

From Angular application we're using on WeChat the last Tencent Captcha API and this error appear in DevTools console (on desktop - windows - Chrome webkit): [Violation] Feature policy violation: ...
-1
votes
1answer
28 views

How to keep list of selected localStorage values after refresh in angular6?

I have list of localStorage data, i select one option from list but after i am refreshing that selected data went out. selectedColumns: any[] = []; this.listData = [ { field: "id", header: "Id", ...
-4
votes
0answers
18 views

How to download free ecommarce website template for angular 2 [closed]

I am trying to download free ecommerce websites template developed by angular 2+. But I can not find out.If anyone know about it please help me. Examples: https://themehunt.com/items?start=42 and ...
0
votes
1answer
50 views

Do not use the following characters: < > ( ) [ ] ; : , \ in email validation pattern

I am using regx email validation pattern in my angular application. As per requirement I Do not want the following characters: < > ( ) [ ] ; : , \ I am using below pattern. let emailPattern = /...