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 $scope.link recieves a “http://link.com”,

I’m trying doing like this way:

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

<script>
if($rootScope.active = "news") {
    	console.log('works!');
    };
</script>

Not even the console is telling if works…

What am I doing wrong? Thanks.