Why do you need an extra file if you can write the logic in your angular app?
I assume that you are using ng-app and have a so-called javascript file where your logic is located, and you should include it here.
Here is an example of the correct way to add / remove a class.
<div ng-app> <div class="italic" ng-class="{red: hover}" ng-mouseenter="hover = true" ng-mouseleave="hover = false"> Test 1 2 3. </div> </div>
NB I found this in another stackoverflow question, please use google search first, I don't have enough reputation to mark your question or make a comment.
* EDIT *
It looks like you are not familiar with AngularJS yet. You need to add your "app.js" or "script.js", whatever you call. There you define your application using
var app = angular.module('yourappname', []);
And your HTML should be
<div ng-app="yourappname"> <div ng-controller="yourController">
PLEASE ORDER YOURSELF THE FIRST BEFORE YOU START QUESTIONS OF QUESTIONS
source share