chore(version): upgrade to angular2 beta-0
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
/// <reference path="../../../tsd.d.ts" />
|
||||
|
||||
import {
|
||||
Component, View, EventEmitter,
|
||||
CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass, NgStyle
|
||||
} from 'angular2/angular2';
|
||||
|
||||
import {FileSelect} from '../../../components/file-upload/file-select';
|
||||
import {FileDrop} from '../../../components/file-upload/file-drop';
|
||||
import {FileUploader} from '../../../components/file-upload/file-uploader';
|
||||
import {Component} from 'angular2/core';
|
||||
import {CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass, NgStyle} from 'angular2/common';
|
||||
import {FILE_UPLOAD_DIRECTIVES, FileUploader} from '../../../ng2-file-upload';
|
||||
|
||||
// webpack html imports
|
||||
let template = require('./simple-demo.html');
|
||||
@@ -16,11 +11,9 @@ let template = require('./simple-demo.html');
|
||||
const URL = 'https://evening-anchorage-3159.herokuapp.com/api/';
|
||||
|
||||
@Component({
|
||||
selector: 'simple-demo'
|
||||
})
|
||||
@View({
|
||||
selector: 'simple-demo',
|
||||
template: template,
|
||||
directives: [FileSelect, FileDrop, NgClass, NgStyle, CORE_DIRECTIVES, FORM_DIRECTIVES]
|
||||
directives: [FILE_UPLOAD_DIRECTIVES, NgClass, NgStyle, CORE_DIRECTIVES, FORM_DIRECTIVES]
|
||||
})
|
||||
export class SimpleDemo {
|
||||
private uploader:FileUploader = new FileUploader({url: URL});
|
||||
|
||||
Reference in New Issue
Block a user