Ng-show directive dosn't work?

Hey i’ve made some menu that should show hide on click i saw some topic on stackOverflow and don’t have idea why this ng-Show dosnt work for me…

It is changing value but not hiding div im missing something?

ng-hide=“showMe"
instead of
ng-hide=”{{showMe}}"

Change:

<div ng-hide="{{showMe}}">

to:

<div ng-hide="showMe">

@kurtommy & @bwasnie1 could you tell why i don’t need the mustaf there?

Angular expressions need to be within the curly-brace bindings, where as Angular directives do not.

http://stackoverflow.com/a/12602481/3294833

1 Like