Skip to content

Commit

Permalink
Adds support for .ts views.
Browse files Browse the repository at this point in the history
Fixes #121
  • Loading branch information
MicahZoltu committed Jul 4, 2015
1 parent 4589ec2 commit f5b361a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view-strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class ConventionalViewStrategy extends ViewStrategy {
}

static convertModuleIdToViewUrl(moduleId){
var id = moduleId.endsWith('.js') ? moduleId.substring(0, moduleId.length - 3) : moduleId;
var id = (moduleId.endsWith('.js') || moduleId.endsWith('.ts')) ? moduleId.substring(0, moduleId.length - 3) : moduleId;
return id + '.html';
}
}
Expand Down

0 comments on commit f5b361a

Please sign in to comment.