7,848 questions
0
votes
1
answer
78
views
Creating a Heatmap with Colored Icons and Without Icons on Leaflet or Any Map Supporting Satellite and Physical Views
I am working with Angular 6 and Leaflet 1.4.7 to implement a heatmap feature in two ways:
1.Heatmap with Colored Icons
I want to place colored icons at specified latitude and longitude
coordinates on ...
0
votes
3
answers
67
views
How to resolve reg expression in angular 6
I am trying to validate phone number in the reactive form validation. but reg expression not working properly. Getting error like below:
ERROR
Error: Invalid regular expression: /^/^+([0-9]{1,3})?[- ]...
1
vote
0
answers
35
views
Sporadic: REST service gets triggered multiple times even if in DevTools the network call is triggered only once
I have an microservice application where we use
Angular 6 (Client)
Java 8 (Server)
PostgreSQL (DB)
The network tab on devtools shows single entry, so I added logs at each level (Filter, Controller, ...
0
votes
1
answer
3k
views
How to validate mat input text field inside a mat table in angular 6?
I have a mat table in where Im getting values from backend and displaying. Now Im trying to add a new typeable field "cmnts", where it should be a text field and have validations. My issue ...
0
votes
1
answer
153
views
anchor tag keyup.enter event not opening up bootstrap based modal
In my angular 6 application, I am having below code as part li tag, wherein clicking on it opens up a bootstrap modal window (not ngbModal), However it is not working on Enter key event of keyboard or ...
2
votes
0
answers
2k
views
Failed to run any NPM Command Error: `gyp` failed with exit code: 1
I'm trying to uninstall node-sass using "npm uninstall node-sass", but I am not able to run any npm command as it gives the following error.
Undefined variable standalone_static_library in ...
0
votes
2
answers
4k
views
How to remove script tags in index.html from Angular Component
<script data-jsd-embedded data-base-url="" data-key="" type="text/javascript" src="js-text-sample.js"></script>
Above is my sample script tag which ...
-1
votes
2
answers
540
views
@google-pay/button-angular issue: Cannot read properties of undefined (reading 'pay'),
For the Google pay payments in my application, I was using @google-pay/button-angular in angular
The HTML code is:
<google-pay - button[environment]="current_env"[buttonColor] = "...
0
votes
1
answer
132
views
Angular 6 changing a variable within subscribe doesn't work
I'm not sure what I'm doing wrong here but my variable is not getting changed inside subscribe(). Below is my code snippet where I'm calling getAllCompanies() from save(). The expectation is that I ...
0
votes
0
answers
276
views
Variables within Angular routes being available in components
Weather (pun intended) it is the heat of the day, or the day of the week (Friday) but for the life of me, I cannot fathom out how to pass data from within a defined route to a component.
In my app....
0
votes
1
answer
458
views
How to solve ng build library Angular?
Aftyer command ng build lib I got this error message:
Error: Cannot find module 'tsickle/src/tsickle'
I have tried to install npm i tsickle no effect.
"@angular/core": "^6.0.0"
...
0
votes
0
answers
50
views
ngfor display not according to array received
Below is the object i receive from the backend
{
"30-04-2022": [
{
"id": 3,
"user_id": 3,
"amount": 178000,
"created_at&...
-1
votes
1
answer
207
views
Adding SL number to a angular table
I have the following table where in the table is generated using an array:
<tbody *ngFor="let ques of questArray;let i =index">
<tr *ngif="catId == ques.categoryID">
&...
0
votes
2
answers
987
views
Add click event on element still not in dom
I have to add click event on a anchor element that can load later I know in javascript I can do like this.
document.addEventListener('click', function(e){
if(e.target && e.target.id== '...
0
votes
1
answer
1k
views
Accessing elementRef inside MatButton. Angular 6
I'm trying to get boundaries of an element. It works well with div, however when I'm trying to do the same with button with angular material directive I'm getting the MatButton object and I can't use ...
0
votes
0
answers
913
views
how to reduce the file size for uploading?
file upload gets a 413 error when uploading a file greater than 40mb.
Here i send the file attachment parameter as an base64string. For a 40mb size file , also gets a long base64 string.
so how could ...
1
vote
2
answers
3k
views
Angular6 Can't use ternary operator in ngClass with multiple entries
I'm trying to add multiple classes by ngClass, and I'm confused as to why I can't use ternary operator here.
<div [ngClass]="{'otherClass': otherFlag, classFlag ? 'class--true': 'class--false'}...
-2
votes
1
answer
729
views
Fetch input values created by ngFor on button click Angular
I have an input field which is being generated using *ngFor and I want to capture all those values inside the input field on submit button click. I have tried all possible ways but not able to get the ...
-1
votes
1
answer
130
views
onclick radio button make textbox value null and hide textbox
I want to calculate the amount
Eg: product cost
material
GST
So if i Enter product cost, material cost(uses radio button) and GST it will show the result but the issue is when i click on no option the ...
3
votes
1
answer
2k
views
Error: Local workspace file ('angular.json') could not be found when upgraded to Angular 6
I have upgrading my project from Angular 5 to Angular 6. When I try to run the application using npm start it is throwing a below error.
I know that there is already questions like this that has ...
1
vote
1
answer
611
views
Property 'subscribe' does not exist on type 'Observable<any>'
I am trying to get data from googleTagmanger. But I am getting error as "Property 'subscribe' does not exist on type 'Observable'" Below is my code.
this.translate.get('newtest....
0
votes
1
answer
779
views
Module not found: Error: Can't resolve '@ng-plus/signature-pad'
I am working on an angular6 project tried to add a signature pad but after installing the package npm install @ng-plus/signature-pad --save the error message is showing
ERROR in ./src/app/app.module....
1
vote
2
answers
784
views
How to define a model class in angular8(TypeScript) or above for nested JSON response coming from SpringBoot backend code
I want to define a model class in angular8 for the below nested JSON response.
JSON Response:
{
"message": "All Users fetched",
"status": "Success",
"...
-4
votes
2
answers
5k
views
How to loop through array of objects in angular 6?
I am very new to angular and I am assigned to a task where I want to get data from an API and iterate and display it in a chart. My angular version is 6.
This is the response JSON format, It is a ...
1
vote
1
answer
1k
views
How to fix error TS2416: Property 'canActivate' in type 'KeycloakAuthGuard' is not assignable to the same property in base type 'CanActivate'?
I am very new to the angular project. After I clone the project and try to up the project with ng serve.
So I am getting an error like.
ERROR in node_modules/keycloak-angular/lib/core/services/...