comparison src/app/waveform/waveform.component.ts @ 36:e58fb181a11d

Import waves-ui with TypeScript (ambient module, no typings for now) over angular-cli global scripts. Include there instead a TypeScript file, for creating a webpack scripts bundle of external modules (unused currently, but can provide a way for importing npm modules to a worker).
author Lucas Thompson <dev@lucas.im>
date Thu, 01 Dec 2016 14:05:49 +0000
parents 35350929f23b
children e6eb133fa47c
comparison
equal deleted inserted replaced
35:47ea1f5af71f 36:e58fb181a11d
1 import { 1 import {
2 Component, OnInit, ViewChild, ElementRef, Input, AfterViewInit, NgZone 2 Component, OnInit, ViewChild, ElementRef, Input, AfterViewInit, NgZone
3 } from '@angular/core'; 3 } from '@angular/core';
4 import {AudioPlayerService} from "../services/audio-player.service"; 4 import {AudioPlayerService} from "../services/audio-player.service";
5 import wavesUI from 'waves-ui';
5 6
6 declare let wavesUI: any; // TODO non-global app scope import
7 type Timeline = any; // TODO what type actually is it.. start a .d.ts for waves-ui? 7 type Timeline = any; // TODO what type actually is it.. start a .d.ts for waves-ui?
8 8
9 @Component({ 9 @Component({
10 selector: 'app-waveform', 10 selector: 'app-waveform',
11 templateUrl: './waveform.component.html', 11 templateUrl: './waveform.component.html',