Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Regarding provider pic #1578

Open
dbelieves opened this issue Oct 17, 2016 · 0 comments
Open

Regarding provider pic #1578

dbelieves opened this issue Oct 17, 2016 · 0 comments
Milestone

Comments

@dbelieves
Copy link

dbelieves commented Oct 17, 2016

Hi all,
I have a very curious case which i am not able to comprehend.

When I login using facebook I see my profile picture in the header.
https://github.com/meanjs/mean/blob/master/modules/core/client/views/header.client.view.html#L35

user.profileImageURL does not store an image path. The link, when opened in browser, redirects to the actual image path.
How is angular able to do so using 'ng-src' ?

Also, I am trying to do the same thing in one of my views but the same is not happening.
src is storing only //graph.facebook.com/my_id/picture?type=large.

Can someone help me resolve this?

For now, I make a request from the server to get the actual image path and then send it to the controller. But i was baffled when i saw the above code working without any hassle.

is there any caveat i am missing ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants