Questions tagged [angular5]
Questions about Angular version 5, the web framework from Google. Use this tag for Angular questions which are specific to only version 5. Use tag Angular for any Angular questions which are not specific to an individual version.
angular5
6,540
questions
0
votes
0
answers
16
views
Ionic 3 issue while generating AAB file
I am trying to create AAB file to upload into play store using Ionic 3 using below 2 commands. This was working fine before, but now it is showing attached issue. Don’t know what has been changed ...
0
votes
2
answers
46
views
How to make Cancellable api calls in loop in Angular?
I have a list containing parameters, such as:
[
{a:1a,b:1b,c:1c},
{a:2a,b:2b,c:2c},
{a:3a,b:3b,c:3c}
]
For each parameter object, I aim to initiate three consecutive API calls, each with ...
0
votes
1
answer
54
views
Add two different index.html in angular.cli.json
I have to add two index.html for prod and dev, I'm using angular5 project need to add under angular.cli.json
where and how to add them?
I have tried with configuration but this says above version 6
-1
votes
1
answer
2k
views
Error: Emit attempted before Angular Webpack plugin initialization(Error: Emit attempted before Angular Webpack plugin initialization)
Here what im doing is I have created new project in Angular 15 and moving the code from the Angular version 5. I have fixed all the errors but stuck with this one error.And also here is the my current ...
0
votes
0
answers
93
views
Error when executing npm install @types\selenium-webdriver-93afec84\package.json
error when executing npm install:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: ...
0
votes
0
answers
80
views
TypeError: Cannot read properties of undefined (reading 'mangleWasmImports')
I'm in the process of upgrading my old node 8x project to node 18.18.0. When building a webpack angularjs app I get this error and unsure how to handle this issue. Is this a bug in webpack/webpack-cli ...
-1
votes
1
answer
121
views
Compilation errors showing up only locally (Angular)
I am trying to run this application, but I keep getting this errors during compilation that I can't find a solution to. Normally I would know how to solve them but the real problem is that these ...
0
votes
0
answers
40
views
Angular 5 karma code coverage report generation using webpack
I have an project which we are internally using as an npm package across few other UI applications, currently the code coverage report is not getting generated. Since its an npm pacjage we have not ...
1
vote
1
answer
85
views
In Angular 5 project getting gyp errors on npm install
I am trying "npm install" in angular 5 project, but its giving gyp errors . does anyone have any idea about the errors visible in the following screenshots.
I have tried to clear cache , ...
0
votes
1
answer
90
views
[email protected] added to Ionic3+Angular5 app: "Module Parse Failed" due to spread operator "..."
It's a legacy project on life support that I don't have the luxury of upgrading to Ionic7/Angular14+. Works fine other than needing to add Sentry. Upon adding sentry-cordova (1.1.5), building now ...
0
votes
0
answers
409
views
How to add proxy configuration in web.config file and remove from appsettings.json in .NET 6 with Angular 5?
How to Add proxy configuration inside web.config file by removeing proxy from appsettings.json file in .net6 with Angular 5?
I tried to add proxy in web.config file by removing from appsetting.json ...
1
vote
0
answers
45
views
I have to filter out nested object based on condition in angular 14
Below is my json object in which I have nested listofdeciosion object. If listofdecisoion length is greater than 1 and it has decision name as 'AEE' then I have to remove that object from ...
0
votes
1
answer
246
views
Configure Jest to Angular 5
I am working on a project that uses Angular 5 (archaic, I know) and I followed this article to help set up Jest in my project, and my files look like the following:
package.json
"dependencies&...
0
votes
1
answer
694
views
Get Angular Type<> from component instance in Angular 5
First of all, I wanted to make clear that what I want is the Angular Type instance of a component, not the TypeScript definition of that component.
The context is the following:
I'm inside a service ...
0
votes
1
answer
82
views
Angular 4 Semantic UI Tabs only work after i click on them
I have some semantic UI tabs set up in my app.component.html like this:
<div class = "ui container">
<h1>Header/h1>
<hr>
<div style = "background-color: ...
0
votes
1
answer
76
views
Property 'artist' does not exist on type 'ArtistItemsComponent'
So I'm new to Angular, and following an Angular5 course on LinkedIn.
I'm trying to create a subcomponent named artist-items, and have created the HTML and TS files for it.
Okay, apologies for posting ...
0
votes
0
answers
168
views
Upgrading an existing project from Angular 5 to Angular 14
There were some enhancements needed to be done from an old project but my Angular is angular 14 and the project is in Angular 5. I cannot load the project because of the version compatibility issues. ...
0
votes
1
answer
1k
views
Cannot read property 'write' of undefined - Angular
I am working on an Angular 5 project where I'm facing issue Cannot read property 'write' of undefined while trying to build and run(ng serve):
My local @angular/cli version is 1.7.4 and below are ...
-1
votes
1
answer
382
views
Is there a solution to run signalR in angular 5 project or is there an alternative to signalR to bild real time notification ??
I have an angular 5 and .Net project, I needed to integrate real time notifications, the solution was to work with signalR.
I tested a sipmle signalR example with .Net5 and angular 13 and it works ...
0
votes
1
answer
191
views
How to save data without ngModel in template driven approach
I am stuck in a situation where I have to save data to the database from Angular UI. I am showing a tabular format data where the table data (table header and table value) changes based on some ...
1
vote
1
answer
916
views
Filtering of Array using filter() works fine, but doesn't change in frontend
component.ts
searchVideo = (search: string) => {
this.query = search;
if(this.videos.length == 0){
this.filteredData = [];
}
if(!this.query){
...
0
votes
1
answer
655
views
Using the filter or find method to retrieve an object inside a json [closed]
How can I obtain one of these objects by using the filter or find method and looking for a match inside of the fiberAgrupations Array
I tried doing this:
const landlineRate = this.monolineJsonRates[0]....
1
vote
1
answer
59
views
How to pass the filtered data which is returned from Custom Pipe to Child Component?
Parent Component
<app-search-bar (sender)="searchVideo($event)"></app-search-bar>
<ng-container *ngFor="let video of videos | search: query; let i=index;">
...
&...
0
votes
2
answers
110
views
How to check for undefined before assigning to variable
Im using a find method to extract an ID (string) but this is returning an undefined as it doesnt exist.
const additionalLinePhoneNumber = products.find(product => product.name === 'segundaLinea')....
4
votes
3
answers
2k
views
"Error: Unexpected end of JSON input" when trying to update Angular from 5.2 to 6.0
I am attempting to update an old Angular project that has not been updated for a long time from Angular 5.2 to 13.0. I am following the Angular guide (https://update.angular.io/?l=2&v=5.0-13.0) ...
0
votes
1
answer
694
views
Redirect and at the end of navigation call another method. Angular 5
I have a login screen, a landing screen and a Modal Popup Screen.
One of the scenarios is User successfully Logs In --> Show Landing page --> Show Modal Popup screen.
Login.ts : has the code to ...
0
votes
1
answer
149
views
Tried my best to stop duplicating data on continuous http request by clicking refresh button(for that particular component) Angular 5
The below is my .ts file for the Alarm Component and over HTML I am using a simple *ngFor over criticalObject.siteList to display the records
This is not the original code I have simplified this but ...
2
votes
1
answer
169
views
Filtering Array of Objects on the base of two fields in type script
I am working in angular 5
I have a problem
I have an API response like:
modules: Array(6)
0:{name:module1,value:'a',key:10}
1:{name:module2,value:'b',key:20}
2:{name:module3,value:'c',key:20}
3:{...
0
votes
1
answer
64
views
Angular5 use external component in Lazy loaded Module
I has LazyModule which I load lazy, and another one ModuleA. I need to use component Module-A-Component inside LazyModule. How can I access this external component? I use Module-A-Component around all ...
1
vote
1
answer
1k
views
PDF text search in Angular 5+
I am trying to achieve something like below.
I want the list of matching text should be listed in right side bar. I am sure it can be done using PDFTron but I am looking for alternatives.
Is it ...