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

Questions tagged [angular]

Questions about Angular (not to be confused with AngularJS), the web framework from Google. Use this tag for Angular questions which are not specific to an individual version. For the older AngularJS (1.x) web framework, use the angularjs tag.

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

angular data transfer and usage

I have component A which has template <div>component **A**</div> <router-outlet></router-outlet> and when I write site.com/A/B A component loads makes some operations ...
0
votes
0answers
13 views

Why angular delete its output directory folder?

I have observed that whenever we build angular apps it creates a fresh output directory every time and deletes previous existing folders. Why does not it deletes directory content and re use that ...
0
votes
0answers
4 views

Kendo Angular UI Gauges resize themself after update

Im using the RedialGauge from Kendo UI together with angular. Im loading my data for the gauges dynamically from an api with rxjs every 3 minutes, here is my code: interval(6e1*3) .pipe( ...
0
votes
0answers
7 views

.dwg file upload and view in js/html/angular

Need to upload the .dwg format images and able to preview /view in a page which created using js/HTML/angularjs or Angular 2+?. tried to implement CAD viewer js library but there is not much ...
0
votes
0answers
7 views

Angular 8: Listen to inner element that is in the unaccessible component

I installed MuiOrgChartModule to show my nested data as a tree view and i only have access to whole element like this: <mui-org-chart #chart (itemClick)='showOuManagementDialog($event)' [...
0
votes
0answers
9 views

How to bind ngModel values into select-searchable options?

Is there any way to bind ngModel values into select-searchable option in ionic to see default values from localStorage. <ion-col col-6> <select-searchable okText="Odaberi" cancelText=...
-1
votes
0answers
19 views

Angular creating divs with ngFor on an array of objects: How to refresh add another div when another object is added to the Array

So I have a ngFor div which generates tabs in a mat tab group <div *ngFor="let step of validationSteps; let i = index "> <mat-tab> </mat-tab> </div> which gets it data ...
-1
votes
1answer
6 views

How to access audio file from the google cloud storage?

I'm trying to access the audio file(https://storage.cloud.google.com/grad_production/SineWaveMinus16.wav) from the google file storage in the html audio tag. How to access the file in the angular 7.
0
votes
0answers
16 views

How to write unit testing for alert service

I am new to write unit test cases can any one help me to write test cases for my alert service. I am using angular 7. My alert service and my alert model code like below. I need to code cover for this ...
-1
votes
0answers
6 views

X-beta header post request

What mean exactly add the x-beta header to the post request? I have to call some api which need x-beta header. Can you send me some example. Thank you
0
votes
0answers
55 views

ERROR TypeError: Cannot read property 'click' of undefined

I am using a Angular 8 application but I get an error on the click event I have this html: <button mat-raised-button color="accent" (click)="saveAndPublish()" [disabled]="form.invalid">Save &...
0
votes
1answer
36 views

Why do you want your Angular app to work offline?

I am deep into the Complete Angular course by Max S. on Udemy and we are talking about service workers now. I am really wondering why you would ever want your Angular (or any other) app to work ...
0
votes
1answer
24 views

iteration on Datasource in Angular

I want make a function who iterate through an array of object and put the property status to false. the array of obj is a datasource on angular table. this.lightService.getLamp() .subscribe( (...
0
votes
0answers
19 views

Properly binding values to prevent duplication

I have 5 fields for a user to fill in: Leave Code, From Date, Input Time1, To Date, Input Time2. I have these variables declared as a dates object in my .ts file as shown in this snippet. interface ...
1
vote
0answers
29 views

How to add module in angular app without getting error in console?

I have problem with adding a new module to me angular app. I need to add ng2-search-filter to my app but i'm getting this error in console and my app isn't working I added everything as it should be, ...
0
votes
1answer
12 views

parent component accesses one of its child via ViewChild but it is always undefined

I have a component with another one of my own components in its template: <div (click)="onEditStarted()"> ... <my-child *ngIf="someCondition"></my-child> ... </div>...
0
votes
0answers
23 views

@Import scss, relative path, angular-cli

I encountered some issues, by importing *.css file with @import into .scss. The .css file got some relative path url('path') inside and belongs to imported library, so is on node_modules. My ....
0
votes
1answer
27 views

Trigger event in NgOninit on click in Angular 8

I have a click event. And if you click on that you can fill a little form. But I want as default value that if the page is loaded first time, that you already see the form. I try it in the NgOninit. ...
0
votes
2answers
27 views

How to show validation state of ng-select?

Here's a sample enter link description here I am using ng-select and want to change border-color whether the validation is error or not. Been doing this for hours. docs is not that clear it only ...
-1
votes
4answers
28 views

How to apply condition in ngFor in angular? [duplicate]

i want to loop the user list with condition <li *ngFor="let user of users" *ngIf="user.age>25"> {{user.name}} </li> i know this is wrong. but,i want to use come like this. is there ...
0
votes
0answers
24 views

Budget probleme because of css file import

I'm a junior developer, I haven't got a lot of experience and I work currently on a big Angular project. We use Angular Material and create custom themes for our application. We have a global style....
-1
votes
0answers
25 views

Angular with PHP [on hold]

I want to learn angular with PHP Kindly suggest something.I have tried many to learn from many tutorials but i have not find any sufficient material to understand or enhance my learning.
0
votes
0answers
7 views

Updating nativescript to 6.1 ruined Scss compilation

Scss files are working as expected before the update but somehow not taking effect when I upgraded to 6.1.0. I really do not know where to start checking as I am not really familiar in webpack doings. ...
2
votes
4answers
65 views

Reading data from json string to c# object

I am developing an Angular App with .net server and the backend is written in c#. I have formed an object by combining the data from two different forms and converted object to json string using JSON....
0
votes
1answer
37 views

Error: No component factory found for 'component'. Did you add it to @NgModule.entryComponents?

I am getting the following error: Error: No component factory found for DropdownComponent. Did you add it to @NgModule.entryComponents? I understand that I should add the component (...
0
votes
1answer
30 views

Set custom classes with angular 8

I need to create classes with a background color returned by the bank, how can I do this with Angular? I know there is a way to do this, perhaps using @ViewChildren. These are classes that I will ...
1
vote
3answers
45 views

Using even and odd with Angular *ngFor

I have a list of records which I want to display using a table and ngFor. To avoid using pagination, I'd like to show 2 records per table row, something like this: As you can see, I'd like to show ...
-5
votes
2answers
49 views

How to avoid string comparison for increment or decrement with same function?

How to avoid string comparison for increment and decrememnt with the same function? <div (click)="operation('increase')"></div> <div (click)="operation('decrease')"></div> ...
2
votes
4answers
53 views

Verify objects in array also exist in observable array

I would like to verify that the objects in the following array: const payment1: Payment = new Payment('1000'); // 1000 = id const payment2: Payment = new Payment('1001'); const paymentArray: Payment[...
0
votes
1answer
17 views

How to define a route with loadChildren property (lazy) inside an Angular library?

We have a large Angular 8 app that we want to split into several parts (libraries). We would like each library to define its own routes without losing lazy-loading ability. But we are facing ...
0
votes
1answer
22 views

How to integrate between two different angular applications

I am working with Angular 7. I have separated login module into one application and remaining into other application and i am loading login application first if the login is success i have to navigate ...
0
votes
0answers
22 views

How to add owl carousel in angular 7?

I am trying to add owl carousel in angular 7 but I have not got any successful answer for it. Please tell me a way to use owl carousel in angular 7. I am using CLI 10.15.0. Thanks, Vimal Sharma
-1
votes
1answer
21 views

Error type is a string but server sends a json object describing the error Angular8

API sends an error as a response like this "errors": { "Password": [ "The Password field is required.", "You must specify password between 4 and 8 character" ...
0
votes
1answer
12 views

(Angular Unit-Test) How to mock input property in Jasmin?

I am currently trying to mock input properties for an Angular unit test. Unfortunately, I can not get any further and repeatedly receive the following error message: TypeError: Cannot read property ...
0
votes
0answers
14 views

Using ion-img waiting for url key?

I am wanting to use ion-slides with ion-img to produce a gallery since I am thinking there may be a fair no of images. ion-img in ionic 4 uses lazy-loading to fetch the images which I think is what I ...
0
votes
2answers
22 views

Change the color of selected Tab, of TabMenu PRIMENG - style

I'm using primeng component tab menu. https://www.primefaces.org/primeng/#/tabmenu I can't find a way to change the color of the selected TAB, to a different one.
0
votes
0answers
26 views

Close currently open browser tab on button click in angular 7

I have tried some many codes but none is helping my requirement is to close the tab which is open on button click in a page. window.open("about:blank", "_self"); window.close(); This piece of code ...
-1
votes
0answers
20 views

How can i use gRPC in angular 8

I'm first-time implement gRPC Is there any way to use gRPC in angular 8. How can we implement gRPC how to use google protocol buffers within an angular 7/8 project
0
votes
0answers
15 views

Angular Konva : Cannot read property 'Stage' of undefined

I am using angular environment with following versions. Angular CLI: 7.3.9 Node: 10.10.0 OS: linux x64 Angular: 7.2.14 And the project includes [email protected] Angular starts ...
0
votes
2answers
17 views

Angular Async Router Navigation Not Working

After I send a request to my REST API and the login is success I want to navigate to another page. I found out that I need to use async and await for this. login.component.ts: onLoginSubmit() { ...
-2
votes
0answers
27 views

Element not adapting styling in Angular

I have an angular project which is a blog. I have to display the content coming from json data. After receiving data, I have set the content inside a div in the main dom using typescript (document ...
-3
votes
1answer
19 views

How do we create a sub-table in a mat-table when clicked on a link in a row using angular 7?

I have a mat-table in which there are values in every row. When i click on the data in a row, a new row which contains another mat-table should be added
0
votes
0answers
17 views

Spotify API full song play

I am trying to make a music streaming web-app using spotify's API. But after many research I am not able to find a way by which we can stream a song from spotify by just clicking the play button from ...
0
votes
1answer
17 views

how i can do drop down selection in ionic 3

I want the drop down selection but it is showing with radio button in ionic 3. Stackbiz code how can i do drop down selection (with text). Ref : Refered link Ioinc v3 <ion-list&...
0
votes
0answers
15 views

How to fix this error in Angular6 using pptxgenjs [on hold]

ERROR in error TS5055: Cannot write file 'C:/Users/Documents/SMPROJECT/dsc/src/ngApp/node_modules/pptxgenjs/dist/pptxgen.colors.js' because it would overwrite input file. Adding a tsconfig.json file ...
2
votes
2answers
62 views

How to add a string to a list without duplicates

I do not know how to check if my variable or it duplicate are already in the list before adding it. Let's take an example of a list: LIST = ['TestA', 'TestB', 'TestC (AZE)', 'TestB (#2)'] If I ...
0
votes
2answers
28 views

How to pass post json obj value to API in angular4

Here I'm trying to save some data to DB (post method)using angular 4.But my work is not getting the result. when trying to postman I got the output.so i confirm my Web APi is working fine. actually I ...
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 ...
-2
votes
1answer
15 views

ng test fails in angular universal Error “Incomplete: No specs found, , randomized with seed 48751”

convert angular 7 project into angular universal while running "ng test" command giving error as "Incomplete: No specs found, , randomized with seed 48751". Tried different ways mention over ...
0
votes
1answer
17 views

NGXS: Seperate actions into seperate files

i am using NGXS in my Angular 8 app. Currently, all action handlers (functions with @Action decorator) are implemented in state.ts, making the file way to long to read. I managed to seperate the ...