Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
41 views

I have a typescript file with the following non async function. export function MSALInstanceFactory(): IPublicClientApplication { const environmentService = new EnvironmentService(); const ...
meji's user avatar
  • 1,108
0 votes
0 answers
60 views

I am working on an Angular app (version 17). I have a parent component with two child components. On my page, I want to ensure that the content won't be displayed until all the data (from both the ...
dev_stack's user avatar
1 vote
1 answer
113 views

I have a function which should get some data asynchronously. getPageEvents() { const promises = this.calendarPage.days.map(day => { return this.dataService.getEventsByDay(day) ....
Andrea Militano's user avatar
1 vote
0 answers
115 views

A service I've written in Angular is being consumed in a third party angularJS application. My pattern has been: create a service method which returns Observable<someType> and then create a ...
minifier's user avatar
3 votes
2 answers
12k views

This is my service file This is my components ts file And these are response models I am having issues with displaying the data I'm fetching through an Observable-based service in my TypeScript file ...
AhmetAltintas's user avatar
0 votes
1 answer
353 views

I am new to Angular and i am facing some difficulties with a task. I have an array of IDs that i want to execute the same GET Call over. And for every GET call result i have to do some operations and ...
mhZakarya's user avatar
0 votes
3 answers
271 views

My code scenario is like :- async function ot(a: any) { return "outer text " + a; } async function it() { return "inner text"; } function insert() { it().then(res =&...
Shubham's user avatar
2 votes
1 answer
3k views

Hello I'm trying to figure out how to handle this deprecation on this code const authCtx = (auth: AngularFireAuth) => setContext(async () => { const token = await auth.idToken.pipe(take(1))...
Gerardo Guevara's user avatar
0 votes
0 answers
31 views

I have a JS library (lets call it library 'a') which is an angular app component and is served through a CDN. I also have another library (let call it library 'b') which was written in typescript and ...
curious_debugger's user avatar
0 votes
1 answer
318 views

I have two models; export interface Student { id: string, name: string } export interface StudentGoal{ id: string, studentId: string, goal: string } I get the students in my ...
Iraklis Bekiaris's user avatar
2 votes
1 answer
2k views

I was looking for a best practice in Angular whether to use Observables or Promises. All the docs seem to use Observables, even on Angular Conferences they are just teaching that way. But most of the ...
Peter Schuhknecht's user avatar
-1 votes
1 answer
630 views

I am working on an angular project that uses leaflet framework for implementing geocoder. My current requirement is to use geocoder, retrieve the lat,lng from the results and emit them to the parent ...
sohan vemu's user avatar
0 votes
1 answer
31 views

I am passing from parent an object array which includes a button inside, in this button I have 2 properties, enable and disable the button, and one more to execute a function, the button works fine, ...
Jorge Tejeda's user avatar
0 votes
2 answers
2k views

In the below code, I have a for loop inside that one API is getting called. I want the 1st API call to be finished and code inside subscribe fully executes first and then the next iteration of for ...
Surya's user avatar
  • 764
0 votes
1 answer
143 views

//to check the uploaded pdf file total pages > 5 static validatePdfFile(event: any) { const file = event.target.files[0]; file.arrayBuffer().then(async buff => { let ...
Durga Prasad's user avatar
0 votes
1 answer
391 views

I have an Angular component that have a method that's being called when a form is submitted. And its calling a service method which returns a promise and im trying to use that to trigger an alert like ...
Ragnar921's user avatar
  • 997
1 vote
1 answer
2k views

Please let me know if I have to provide any more code or explanations. I am trying to execute some code after I call a service method inside a for loop. I tried two different ways. In 1st method, the ...
SK.'s user avatar
  • 1,510
0 votes
1 answer
495 views

I'm having a really rough time with Angular / RxJS trying to learn it under crazy pressure! If I'm returning this Observable: return this.apiProvider.Tracker(parameters).map((res: any) => { ...
Dawie's user avatar
  • 15
3 votes
1 answer
5k views

I have this service that calls to an API to get a bunch of movie descriptions and returns an Observable: getNowPlayingMovies$(page: number, country?: string): Observable<NowPlaying> { ...
jcobo1's user avatar
  • 1,190
3 votes
2 answers
2k views

So far, the suggestions I've seen to remedy my issue don't seem to apply, or I have a big misunderstanding (I haven't touched full stack in quite a while). I've got a service that successfully hits a ...
Darrel Holt's user avatar
-1 votes
2 answers
765 views

I am already tried everything there on internet,and on stackoverflow I couldn't find the right answer. this is my first project in angular along with mongodb. But i am getting this error "Type '...
Siddhant's user avatar
0 votes
2 answers
366 views

i have issue by waiting dataSource is populated: HTML <app-single-y-axis [xAxysDataSource]="dataSource['labels']" [yAxysDataSource]="dataSource['series']"> ...
coeix's user avatar
  • 15
1 vote
1 answer
2k views

I am creating an angular app where I have an API service. This service calls API using axios and updates the value of BehaviorSubject as requires here is the code for that. import { Injectable } from ...
Dhairya Tripathi's user avatar
0 votes
1 answer
203 views

I gone through some links: How to cancel an $http request in AngularJS? Cancelling ongoing Angular $http requests when there's a new request How to cancel a $http call from controller in Angular ...
Anil Kumar's user avatar
0 votes
1 answer
379 views

I have below code which invokes a service to get some values, I knowingly shut down the backend part to check if error is being added. I noticed it makes the service call twice, can someone explain me ...
Miss Forman's user avatar

1
2 3 4 5
43