angular2-template-loader
angular2-template-loader copied to clipboard
Angular 4 compatibility?
Hello, I have a problem
template: 'login.component.html',
Result in my web page with webpack dev server displays the string login.component.html instead of the real html template.
Ok fixed with this one:
templateUrl: './login.component.html'
EDIT: Don't use the keepUrl option !
I'm using this with Angular 4 just fine.
Also, the readme does show the following:
@Component({
selector: 'awesome-button',
template: 'button.template.html',
styles: ['button.style.css']
})
export class AwesomeButtonComponent { }
Which led me to make the same mistake as @JunkyDeLuxe at first.