this feels like a really daft question because it should be so easy but I've been trying to figure it out for a day or two now! I'm trying to build a fully AngularJS app without jQuery and a couple of tricks are proving hard than I imagined.
I've got a three column layout, all within one scope using a Bootstrap layout. Left and right columns show on desktop and disappear on tablet and mobile. Two buttons toggle those columns in and out when viewing on mobile/tablet.
That's literally it! But I want to do it the AngularJS way rather than jQuery - which would be super simple, by checking the class or style and toggling show or hide.
In AngularJS, if I use ng-show or ng-hide, and toggling a variable with ng-click then they are either shown on tablet/mobile by default (they need to be hidden) or they are hidden on the desktop by default (need to be shown).
I've done quite a lot of AngularJS work, so this is making me feel a bit stupid - I have no problem with internationalisation, localisation, localStorage support etc but this one has me stumped!