angular ng-include loader for webpack
If you use webpack and AngularJS ng-include directive, you may need this loader
{
test: /\.html$/,
use: [
{
loader: 'raw-loader'
},
{
loader: 'angularjs-include-loader'
}
]
}
Note: this loader resolves ng-include
only as attribute
<div ng-include="some/path.html" class="some-class"></div>
<ng-include src="will not work"></ng-include>