-
Notifications
You must be signed in to change notification settings - Fork 51
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
Pass variable to template #19
Comments
Hi @sylouuu |
Hey, I tried. It doesn't work as expected. Regards |
Why? The loader will not been shown. Is exactly what you want |
You have right. I didn't think about that: <script type="text/ng-template" id="spinner.tpl.html">
<div>
<div class="spinner-overlay">
<div class="spinner-container">
<div class="loader6"></div>
</div>
</div>
</div>
</script>
<!-- Show loader -->
<div ng-http-loader ttl="0" template="spinner.tpl.html" ng-show="page.loader"></div> Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, thank you for that.
For some requests, I wanna show my loader, sometimes, it must be hidden.
So I have a boolean global variable in
$rootScope
that I have to pass trough thetitle
attribute. Which is pretty dirty.Btw, when my loader is shown, I can see the title as a tooltip (HTML standard) with
"true"
as a string...Example:
{{ page.loader }}
is a boolean. Beside, this boolean is casted into a string (see myng-if
).I suggest to add another attribute to do something like this.
I hope this is enough clear.
Bests
The text was updated successfully, but these errors were encountered: