use $templateCache into submit-form controller

This commit is contained in:
Sam 2016-04-27 18:16:19 +03:00
parent 42e9b7564e
commit 3694cab7bb

View file

@ -1,9 +1,9 @@
'use strict';
angular.module('forms').directive('submitFormDirective', ['$http', 'TimeCounter', '$filter', '$rootScope', 'Auth',
function ($http, TimeCounter, $filter, $rootScope, Auth) {
angular.module('forms').directive('submitFormDirective', ['$http', 'TimeCounter', '$filter', '$rootScope', 'Auth', '$templateCache',
function ($http, TimeCounter, $filter, $rootScope, Auth, $templateCache) {
return {
templateUrl: 'modules/forms/views/directiveViews/form/submit-form.client.view.html',
template: $templateCache.get('modules/forms/views/directiveViews/form/submit-form.client.view.html'),
restrict: 'E',
scope: {
myform:'='