How can I attribute data to a scope if my ng-click = 'something'?


Hello guys,

I’m doing some category menu to my app, I need to detect for example:

if I click in an anchor “News”, my $ recieves a “”,

I’m trying doing like this way:

		<li><a href="#" ng-click="active='news'">FMC Digital</a></li>

if($ = "news") {

Not even the console is telling if works…

What am I doing wrong? Thanks.