I am new at JavaScript and AngularJS. I catch a problem. I want to remove h1 tag when go to /main route. I know that i must use ng-if
and expression with $location
at controller.
<html>
<body>
...
<h1 ng-if "? ">
sometext
</h1>
<div ng-view></div>
</body>
...
</html>
What expression i must use to remove this , or i must write function at controller to check.Thank you in advance