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
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 ...