use a directive for navigation check to attach it to the page instead of the controller

This commit is contained in:
Rafael Schouten
2014-10-17 07:40:08 +11:00
parent 45b0581b7b
commit 245c1eb305
4 changed files with 8 additions and 6 deletions

View File

@@ -0,0 +1,4 @@
angular.module("admin.utils").directive "navigationCheck", (NavigationCheck)->
link: ($scope) ->
# Define navigationCallback on the controller.
NavigationCheck.register($scope.navigationCallback)