I'm trying to use relative path when defining templateUrl in angular2 component, as described here: http://schwarty.com/2015/12/22/angular2-relative-paths-for-templateurl-and-styleurls/
@Component({
selector: 'login-app',
moduleId: module.id,
templateUrl: './app.html'
})
although I keep getting:
ERROR: module is not defined
I am using --m commonjs
in TypeScripy compile settings.
How to make it work?
See Question&Answers more detail:os