These are chat archives for AngularClass/angular2-webpack-starter

23rd
Dec 2018
Ali Akbar Azizkhani
@azizkhani
Dec 23 2018 19:07
hi all ,how can replace angular component templateurl to template like this with webpack
import {Component, OnInit} from '@angular/core';

@Component({
    selector: 'lib-test',
    templateUrl: 'test-component.html'
})
export class JhiTestComponent implements OnInit {

    ngOnInit(): void {
        throw new Error('Method not implemented.');
    }

}
to
/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes} checked by tsc
 */
import { Component } from '@angular/core';
export class JhiTestComponent {
    /**
     * @return {?}
     */
    ngOnInit() {
        throw new Error('Method not implemented.');
    }
}
JhiTestComponent.decorators = [
    { type: Component, args: [{
                selector: 'lib-test',
                template: `<div>azizkhani</div>`
            },] },
];
above code generate with angular.json
but my project using webpack for build l