diff --git a/src/schema-form.js b/src/schema-form.js index 08f6a0c..8cb6d77 100644 --- a/src/schema-form.js +++ b/src/schema-form.js @@ -20,7 +20,7 @@ angular.module('mohsen1.schema-form', []) /* * Main directive */ -.directive('schemaForm', function($parse, SchemaForm) { +.directive('schemaForm', ['$parse', 'SchemaForm', function($parse, SchemaForm) { return { restrict: 'A', @@ -87,7 +87,7 @@ angular.module('mohsen1.schema-form', []) scope.$watch('schema', render); } }; -}) +}]) /* * Provides configurations for schema form