I'm not sure if this is really how you really define your $scope.onAddInterface function, or if this is just an example ... However, you should do it this way:
$scope.onAddInterface = function() { $scope.showCreateNewInterfacePanel = true; }
Update
Also make sure the link and the item to be dropped are under the same $ scope / Controller:
<div ng-controller="Ctrl"> ... <a ng-click="onAddInterface()">add interface</a> ... <div class="collapse" ng-class="{in:showCreateNewInterfacePanel}"><div> ... </div>
Controller:
function Ctrl($scope) { $scope.onAddInterface = function() { $scope.showCreateNewInterfacePanel = true; } }β
source share