This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Unable to load assets without using require() #333
Closed
Description
The template uses require() to load assets from a source .html or .css file. For example:
@Component({
selector: 'nav-menu',
template: require('./navmenu.component.html'),
styles: [require('./navmenu.component.css')]
})
But Angular also allows you to load those assets with a url. In fact, that is the default mechanism when you create an app with angular-cli. It would look like this:
@Component({
selector: 'nav-menu',
templateUrl: './navmenu.component.html',
stylesUrl: ['./navmenu.component.css']
})
But that does not work with this template. It should work because a lot of Angular examples use that and it will lead to a lot of confusion. Also, it makes it difficult to port an app built with angular-cli to use this framework.
Metadata
Metadata
Assignees
Labels
No labels