问题
I have a LoginComponent class that has a Component decorator in Angular 2 (RC1).
import {Component} from "@angular/core";
@Component({
selector: "login",
templateUrl: "login-view.html" // Right here
})
When the LoginComponent is loaded by the browser, it will fetch the template at the given template Url as defined above.
What I am seeing is that the template GET is returning a 404. Upon closer inspection, I am seeing that the request url is:
http://localhost:3000/%E2%80%9C/login-view.html
I looked up the encoding and found that '%E2%80%9C' is a left double quote.
Any ideas on how there is an extra double quote here? Am I doing something wrong here?
I am seeing this using Angular 2, RC1, on the Chrome browser.
来源:https://stackoverflow.com/questions/37471855/templateurl-fails-on-a-component-decorator-in-angular-2-is-prefixing-extra-dou