mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
use a directive for navigation check to attach it to the page instead of the controller
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
angular.module("admin.utils").directive "navigationCheck", (NavigationCheck)->
|
||||
link: ($scope) ->
|
||||
# Define navigationCallback on the controller.
|
||||
NavigationCheck.register($scope.navigationCallback)
|
||||
Reference in New Issue
Block a user