Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avatar image not showing in basic example #67

Open
Orbyt opened this issue Jul 10, 2016 · 2 comments
Open

Avatar image not showing in basic example #67

Orbyt opened this issue Jul 10, 2016 · 2 comments

Comments

@Orbyt
Copy link

Orbyt commented Jul 10, 2016

Was just trying out the package, and wasnt able to get a default avatar image to load. I downloaded and saved the default.png avatar image to my projects /public directory. In my html, I had the following:

<div class="col-md-12">
    {{> avatar size="large" shape="circle"}}
</div>

then in my main js file:

Avatar.setOptions({
  defaultImageUrl: "default.png"
});

Yet this is how it appears: http://prntscr.com/br0o6u

@timothyarmes
Copy link
Contributor

timothyarmes commented Jul 10, 2016

Try:

Avatar.setOptions({
  defaultImageUrl: "/default.png"
});

(Note the slash)

@Orbyt
Copy link
Author

Orbyt commented Jul 10, 2016

That didnt seem to work, same result.

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

No branches or pull requests

2 participants