简体   繁体   中英

Open Angular Web Page app-root can't be found

VS 2019, building an AspNet Core application including Angular project. Using ng build, the client app compiles without errors. But, when I navigate to the page I get an error that "app-root" did not match.

在此处输入图像描述

I've googled to no avail. Somebody help me with this, please!

Thanks

I guess your index.html does not have app-root . Check your index.html has this element.

index.html

<body>
  <app-root></app-root>   <!-- check your index.html has this line. -->
</body>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM