Is angular 2 html file possible instead of component?

I have appCmponent.ts:

@Routes([
  {path: '/login', component: LoginComponent},
  {path: '/home', component:  HomeComponent},
  {path: '/graph', component:  GraphComponent},
])

What if I do not want to load GraphComponent and I just want to load the html file inside. Is it possible?

+4
source share
1 answer

No, you need to wrap your HTML in a component. There is no way.

+3
source

All Articles