Last active
September 22, 2016 20:59
Revisions
-
vucalur revised this gist
Jun 25, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module.exports = function (config) { 'app/scripts/**/*.coffee', 'test/mock/**/*.coffee', 'test/spec/**/*.coffee', 'app/templates/**/*.html' // HERE ], preprocessors: { -
vucalur revised this gist
Oct 30, 2013 . 3 changed files with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ angular.module('someApp.directive').directive('myDirective', function () { return { templateUrl: 'templates/myDirective.html', // HERE .... } }); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,17 +16,17 @@ module.exports = function (config) { 'app/scripts/**/*.coffee', 'test/mock/**/*.coffee', 'test/spec/**/*.coffee', 'app/directiveTemplates/**/*.html' // HERE ], preprocessors: { '**/*.coffee': 'coffee', 'app/templates/**/*.html': 'ng-html2js' // HERE }, ngHtml2JsPreprocessor: { // strip this from the file path stripPrefix: 'app/' // HERE }, autoWatch: true, This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ describe('Directive: myDirective', function() { beforeEach(module('someApp.directive')); beforeEach(module('templates/myDirective.html', 'templates/myDirective.html')); // HERE. load module prepared by ng-html2js beforeEach(inject(function($compile, $rootScope) { scope = $rootScope.$new(); -
vucalur revised this gist
Oct 30, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,7 @@ describe('Directive: myDirective', function() { beforeEach(inject(function($compile, $rootScope) { scope = $rootScope.$new(); // prepare scope in which your directive should be used // ... element = angular.element('<myDirective></myDirective>'); $compile(element)(scope); scope = element.scope(); -
vucalur revised this gist
Oct 30, 2013 . 2 changed files with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ // file: app/scripts/directives/myDirective.js angular.module('someApp.directive').directive('myDirective', function () { return { templateUrl: 'templates/myDirective.html', .... } }); File renamed without changes. -
vucalur revised this gist
Oct 30, 2013 . 2 changed files with 25 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ // file: karma.conf.js // Karma configuration // http://karma-runner.github.io/0.10/config/configuration-file.html This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,24 @@ // file: test/spec/directives/myDirective.js describe('Directive: myDirective', function() { var element, scope; beforeEach(module('someApp.directive')); beforeEach(module('templates/myDirective.html', 'templates/myDirective.html')); // load module prepared by ng-html2js beforeEach(inject(function($compile, $rootScope) { scope = $rootScope.$new(); // prepare scope in which your directive should be used element = angular.element('<myDirective></myDirective>'); $compile(element)(scope); scope = element.scope(); return scope.$apply(); })); it('fancy-dancy test', inject(function($compile) { expect(element.text()).toBe('...'); })); }); -
vucalur created this gist
Oct 30, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ // Karma configuration // http://karma-runner.github.io/0.10/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine'], files: [ 'app/bower_components/angular/angular.js', 'app/bower_components/angular-mocks/angular-mocks.js', 'app/scripts/*.coffee', 'app/scripts/**/*.coffee', 'test/mock/**/*.coffee', 'test/spec/**/*.coffee', 'app/directiveTemplates/**/*.html' ], preprocessors: { '**/*.coffee': 'coffee', 'app/templates/**/*.html': 'ng-html2js' }, ngHtml2JsPreprocessor: { // strip this from the file path stripPrefix: 'app/' }, autoWatch: true, ... }); }; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ angular.module('someApp.directive').directive('myDirective', function () { return { templateUrl: 'templates/myDirective.html', .... } });