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

When I use variable in href, href will disappear. #50

Closed
edward24689 opened this issue Aug 1, 2019 · 6 comments
Closed

When I use variable in href, href will disappear. #50

edward24689 opened this issue Aug 1, 2019 · 6 comments
Labels
invalid This doesn't seem right

Comments

@edward24689
Copy link

Code:
<a data-fancybox [href]="item"> </a>
Result:
<a _ngcontent-oxd-c13="" ng-reflect-href="http://mydomain.com/"></a>

@vh13294 vh13294 added the invalid This doesn't seem right label Aug 1, 2019
@vh13294
Copy link
Collaborator

vh13294 commented Aug 1, 2019

That is an issue with angular not fullpage.js

Please see here

https://keenthemes.com/forums/topic/href-auto-replaced-by-ng-reflect-href-problem/

@vh13294 vh13294 closed this as completed Aug 1, 2019
@alvarotrigo
Copy link
Owner

@vh13294 thanks for the quick answer! ;)

@felipefanucchi
Copy link

I'm having the same problem here, the link you attached is broken.
How the problem can be with angular if it only happens after I activate the plugin?
Thank you!

@alvarotrigo
Copy link
Owner

@vh13294 any insights ?

@vh13294
Copy link
Collaborator

vh13294 commented Dec 28, 2019

You forgot the expression {{}} or you can use

<a [attr.href]="...">

https://stackoverflow.com/a/45509126

@felipefanucchi
Copy link

I've tried before the {{}} and also didn't work.
But I forgot of the [attr.*], it worked fine.

Thanks for the answer.

Following an example for those who are having the same problem.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants