angular2-template-loader icon indicating copy to clipboard operation
angular2-template-loader copied to clipboard

Angular 4 compatibility?

Open klihelp opened this issue 8 years ago • 3 comments

klihelp avatar Mar 26 '17 18:03 klihelp

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.

JunkyDeLuxe avatar Apr 06 '17 20:04 JunkyDeLuxe

Ok fixed with this one: templateUrl: './login.component.html'

EDIT: Don't use the keepUrl option !

JunkyDeLuxe avatar Apr 06 '17 20:04 JunkyDeLuxe

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.

ghost avatar Sep 19 '17 13:09 ghost