I am trying to do a function inside of a controller that uses an if else to change the return. And it works until I change the drop down, and then stops working completely. It does not seem to be working, not sure if I am doing something wrong, or you just cannot do this type of function. Any help would be appreciated.
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular-sanitize.js"></script>
<script>
    var app = angular.module('newApp', ['ngSanitize']);
    app.controller('player1ctrl', function ($scope) {
        $scope.playerName = "Hero";
        $scope.playerCard = "A<br />♠";
        $scope.color = function () {
            //return $scope.playerName;
            var arr = $scope.playerCard.split("<br />");
            var rtn = "";
            if (arr[1] == "♠" || arr[1] == "♣") {
                return "Black";
            }
            else {
                return "Red";
            }
        };
    });
</script>
<title>test ngbindhtml</title>
<meta charset="utf-8" />
</head>
<body ng-app="newApp">
<div ng-controller="player1ctrl">
    Card selected: <p ng-bind-html="playerCard"></p>
    Suit Color: {{color()}}
    <select name="playerCard" ng-model="playerCard">
        <option value="2<br /> &spades;">2 ♠</option>
        <option value="3<br /> &spades;">3 ♠</option>
        <option value="4<br /> &hearts;">4 ♥</option>
     </select>
</div>
</body>
</html>