Skip to content

Commit

Permalink
change module to tc-grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacharias3690 committed Jan 19, 2015
1 parent 0d10b96 commit 798ccd7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dest/tc-grid-templates.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dest/tc-grid.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(function () {
'use strict';
angular.module('tc', []);
angular.module('tc').directive('tcGrid', tcGrid);
angular.module('tc').directive('tcGridColumn', tcGridColumn);
angular.module('tc-grid', []);
angular.module('tc-grid').directive('tcGrid', tcGrid);
angular.module('tc-grid').directive('tcGridColumn', tcGridColumn);

function tcGrid($parse, $templateCache) {
return {
Expand Down Expand Up @@ -36,7 +36,7 @@
headerHtml += '<div class="tc-grid_th tc-grid_sort" id="' + attrs.tcGridOptions + '_' + (colField || sort) + '"' + sortFn + '>' + colName + '</div>';
});

var templateHtml = $templateCache.get('common/directives/tcGrid/tcGrid.html');
var templateHtml = $templateCache.get('tcGrid.html');

templateHtml = templateHtml.replace(/%OPTIONS%/g, attrs.tcGridOptions);
templateHtml = templateHtml.replace(/%HEADER%/g, headerHtml);
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ gulp.task('js-compile', ['clean'], function() {

gulp.task('template-compile', function() {
gulp.src(templateSrc)
.pipe(templateCache('tc-grid-templates.js', {module: 'tc'}))
.pipe(templateCache('tc-grid-templates.js', {module: 'tc-grid'}))
.pipe(gulp.dest('dest/'));
})

Expand Down
8 changes: 4 additions & 4 deletions src/js/tcGridDirective.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(function () {
'use strict';
angular.module('tc', []);
angular.module('tc').directive('tcGrid', tcGrid);
angular.module('tc').directive('tcGridColumn', tcGridColumn);
angular.module('tc-grid', []);
angular.module('tc-grid').directive('tcGrid', tcGrid);
angular.module('tc-grid').directive('tcGridColumn', tcGridColumn);

function tcGrid($parse, $templateCache) {
return {
Expand Down Expand Up @@ -36,7 +36,7 @@
headerHtml += '<div class="tc-grid_th tc-grid_sort" id="' + attrs.tcGridOptions + '_' + (colField || sort) + '"' + sortFn + '>' + colName + '</div>';
});

var templateHtml = $templateCache.get('common/directives/tcGrid/tcGrid.html');
var templateHtml = $templateCache.get('tcGrid.html');

templateHtml = templateHtml.replace(/%OPTIONS%/g, attrs.tcGridOptions);
templateHtml = templateHtml.replace(/%HEADER%/g, headerHtml);
Expand Down

0 comments on commit 798ccd7

Please sign in to comment.