vatModule.directive('vatInvoiceMapping', ['$log', function ($log) { 'use strict'; $log.debug('vatInvoiceMapping.ctor()...'); return { restrict: 'E', templateUrl: '/app/vat/import/vat-invoice-mapping/vat-invoice-mapping.html' + '?_=' + Math.random(), replace: true, scope: {}, controller: 'vatInvoiceMappingController', link: function ($scope, $element, $attr) { $scope.token = $('input[name="__RequestVerificationToken"]').val(); } }; } ]);