Re: [AngularJS] Re: How to Retrieve the file DownloadUrl From firebase ?

2018-10-10 Thread Alas de Laas
I want to save the image Url in my user's table so i can use the image whenever i want. But i have already solved it. it was giving to me an array so i had to extract the urldownload from it, like so: task.snapshot.ref.getDownloadUrl().then(url=>{ const URL =url; } Tahank you... Em qui, 11 de o

[AngularJS] Re: Angular 2 - Child component is holding value of previous instance of same component

2018-10-10 Thread Sander Elias
Hi Mark, I think you are passing in an object for ‘curItem’ is that right? Then you update one of its properties, and this doesn’t reflect. Is that right? The problem is, change detection works by checking if there is a new value. There is none, as curItem is still curItem, its contents have c

[AngularJS] Re: How to Retrieve the file DownloadUrl From firebase ?

2018-10-10 Thread Sander Elias
Hi Alas, It depends on how you want to use the image. Or more precise, where. There are different ways for different purposes. Do you want a public URL for your image, or is the image only to be seen by logged in users? more details are in the documentation

[AngularJS] Re: Is it possible to bypass the Error Interceptor selectively?

2018-10-10 Thread Sander Elias
Hi Partha, Yes, that is possible. The easiest way is adding (and inspect) a flag to your request. I would add a custom header to my requests, that way I can inspect it server side too. http.post(someUrl,someData,{header:{"se-error-handling":"none"}}) inspect that in your error interceptor,

[AngularJS] Error Dialog does not show details

2018-10-10 Thread Partha Majumdar
Dear Sir/Madam, I have put an additional field in the data containing the details. When the dialog display, the details are not shown. When I check the variable containing details, it has values in it. Please suggest what could be wrong. Regards, Partha *error.component.ts* import { C

[AngularJS] ng-options issues

2018-10-10 Thread heybigal2001
Hi, I have an issue and I don't know how to fix it :( I have 2 tables described below: teamslist - hslnteamid - numberstr draft - draftid - dst_hslnteamid_aa when I load my page, I call the backend to load the teamslist and I added an extra row with the following values: hslnte

[AngularJS] Is it possible to bypass the Error Interceptor selectively?

2018-10-10 Thread Partha Majumdar
Dear Sir/Madam, I have implemented the error interceptor. It works fine. Now, I have a situation where I call the same node.js service in 2 places in my application - while I add a new record and when I upload bulk data. When I add record, if HTTP error is detected, it should display the

[AngularJS] How to Retrieve the file DownloadUrl From firebase ?

2018-10-10 Thread Alas de Laas
Hi ? I am uploading files to firebase. And now I want to have the url of the images available to me when i upload. I am doing this: let storageRef = firebase.storage().ref(); let storageTask = storageRef.child(`${this.baseUrl}/${this.seletedFile.name} `) .put(this.seletedFile); storageTask.on(

[AngularJS] Getting Error after implementing AuthGuard

2018-10-10 Thread Partha Majumdar
Dear Sir/Madam, I implemented the AuthGuard. However, I get the following error when it tries to load any Page. Please help. Regards, Partha The error is as follows: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'canActivate' of undefined TypeError: Cannot read

[AngularJS] Angular 2 - Child component is holding value of previous instance of same component

2018-10-10 Thread Mark Ballard
I have a number variable called currTab which is used to tab through three divs on the child component template. When tab is selected on the parent component template, the child component opens with the value of the previous instance. The default on open should be currTab = 1 but if I select 2