Skip to content

Commit 1abc08b

Browse files
author
Robert Messerle
committed
update(build): fixes watch-demo logic
1 parent bbc53dc commit 1abc08b

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

scripts/gulp-utils.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ exports.readModuleDemos = function(moduleName, fileTasks) {
5858
var srcPath = demoFolder.path.substring(demoFolder.path.indexOf('src/') + 4);
5959
var split = srcPath.split('/');
6060

61-
var demo = {
61+
var demo = {
62+
ngModule: '',
6263
id: demoId,
6364
css:[], html:[], js:[]
6465
};
@@ -67,7 +68,7 @@ exports.readModuleDemos = function(moduleName, fileTasks) {
6768
.pipe(fileTasks(demoId))
6869
.pipe(through2.obj(function(file, enc, cb) {
6970
if (/index.html$/.test(file.path)) {
70-
demo.moduleName = moduleName,
71+
demo.moduleName = moduleName;
7172
demo.name = path.basename(demoFolder.path);
7273
demo.label = exports.humanizeCamelCase(path.basename(demoFolder.path).replace(/^demo/, ''));
7374
demo.id = demoId;

src/components/tabs/demoStaticTabs/script.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
(function () {
22
'use strict';
3-
angular.module('tabsDemo1', ['ngMaterial'] ).controller('AppCtrl', AppCtrl);
3+
4+
angular
5+
.module('tabsDemoStaticTabs', ['ngMaterial'] )
6+
.controller('AppCtrl', AppCtrl);
7+
48
function AppCtrl ( $scope ) {
59
$scope.data = {
610
selectedIndex: 0,

0 commit comments

Comments
 (0)