Re: [polymer-dev] ng-show/hide not working?

221 views
Skip to first unread message

Alex Komoroske

unread,
Feb 26, 2014, 10:58:23 AM2/26/14
to Matthew Butler, polym...@googlegroups.com
Matthew, would you mind asking this question on stackoverflow with a 'polymer' tag and posting a link here? That way the answer will be easier for developers to find later.


On Wed, Feb 26, 2014 at 7:45 AM, Matthew Butler <butler....@gmail.com> wrote:
Hi Folks,

I'm scratching my head on this one and wondering if it may just be a usage issue on my end. I'm trying to use the ng-show directive in angular 0.9.8. However regardless of if I'm using ng-show or hide there's no change to the elements displayed on the screen. I'm using it more or less like this:

<a href="" id="someId" ng-show="ctrl.showLink">Download</a>

where showLink is a boolean variable in my controller. Other boolean variables are working as expected elsewhere on my page (eg ng-disabled="ctrl.processing" properly disables an input element when the boolean processing is set to true).

I know the ng-show/hide uses a css class to implement the behaviour. Is there a specific CSS file I should be linking to my project that I'm forgetting? Should I be implementing ng-hide myself?

Any help with this would be appreciated.

Note I also tried to do something similar on one of the tutorial chapters and had the same results.

Matt

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/a275cadf-859e-40c3-a807-a8f7da8fa77c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Matthew Butler

unread,
Feb 26, 2014, 11:00:34 AM2/26/14
to Alex Komoroske, polym...@googlegroups.com
Actually this was posted in error on the Polymer discussion. It
doesn't belong there at all and I tried deleting it once I realized,
but apparently not quickly enough ;-) My apologies for the noise.

Matt
--
Matthew Butler

Alex Komoroske

unread,
Feb 26, 2014, 11:06:01 AM2/26/14
to Matthew Butler, polym...@googlegroups.com
:-)

When I skimmed it I thought the question was about using Angular with Polymer, but now I see it's Angular specific.
Reply all
Reply to author
Forward
0 new messages