File tree 2 files changed +6
-3
lines changed
addon/ng2/blueprints/component
files/src/app/__path__/__name__
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import {Component} from 'angular2/core';
3
3
4
4
@Component ( {
5
5
selector : '<%= dasherizedModuleName %>' ,
6
- templateUrl : 'app/ <%= dynamicPath %>/<%= dasherizedModuleName %>/<%= dasherizedModuleName %>.html' ,
7
- styleUrls : [ 'app/ <%= dynamicPath %>/<%= dasherizedModuleName %>/<%= dasherizedModuleName %>.css' ] ,
6
+ templateUrl : 'app<%= dynamicPath %>/<%= dasherizedModuleName %>/<%= dasherizedModuleName %>.html' ,
7
+ styleUrls : [ 'app<%= dynamicPath %>/<%= dasherizedModuleName %>/<%= dasherizedModuleName %>.css' ] ,
8
8
providers : [ ] ,
9
9
directives : [ ] ,
10
10
pipes : [ ]
Original file line number Diff line number Diff line change 1
1
var stringUtils = require ( 'ember-cli/lib/utilities/string' ) ;
2
2
var dynamicPathParser = require ( '../../utilities/dynamic-path-parser' ) ;
3
+ var path = require ( 'path' ) ;
3
4
4
5
module . exports = {
5
6
description : '' ,
@@ -13,7 +14,9 @@ module.exports = {
13
14
14
15
locals : function ( options ) {
15
16
return {
16
- dynamicPath : this . dynamicPath . dir
17
+ dynamicPath : this . dynamicPath . dir === path . sep
18
+ ? ''
19
+ : this . dynamicPath . dir
17
20
} ;
18
21
} ,
19
22
You can’t perform that action at this time.
0 commit comments