Replace template/styles with templateUrl/styleUrls

This commit is contained in:
Farkas József
2017-02-05 21:39:18 +01:00
parent 604e9cb2b0
commit bd05da4316
50 changed files with 90 additions and 89 deletions

View File

@@ -19,8 +19,8 @@ import { UhkDeviceService } from '../../../services/uhk-device.service';
@Component({
selector: 'keymap-edit',
template: require('../../../shared/components/keymap/edit/keymap-edit.component.html'),
styles: [require('../../../shared/components/keymap/edit/keymap-edit.component.scss')],
templateUrl: '../../../shared/components/keymap/edit/keymap-edit.component.html',
styleUrls: ['../../../shared/components/keymap/edit/keymap-edit.component.scss'],
host: {
'class': 'container-fluid'
}

View File

@@ -14,8 +14,8 @@ import { Component, ViewEncapsulation, HostListener } from '@angular/core';
@Component({
selector: 'main-app',
template: require('../shared/main-app/main-app.component.html'),
styles: [require('../shared/main-app/main-app.component.scss')],
templateUrl: '../shared/main-app/main-app.component.html',
styleUrls: ['../shared/main-app/main-app.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class MainAppComponent {

View File

@@ -32,7 +32,7 @@ module.exports = {
},
module: {
loaders: [
{ test: /\.ts$/, loader: 'ts-loader', exclude: /node_modules/ },
{ test: /\.ts$/, loaders: ['ts-loader', 'angular2-template-loader'], exclude: /node_modules/ },
{ test: /\.html$/, loader: 'html-loader?attrs=false' },
{
test: /\.scss$/,