Skip to content

Commit 31c513b

Browse files
committed
feat(build): works good with typescript@1.6
1 parent 9f62765 commit 31c513b

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

components/accordion/accordion.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import {
44
Component, View,
55
Directive, OnInit, OnDestroy,
6-
NgClass, ViewContainerRef, TemplateRef
6+
NgClass, ViewContainerRef, TemplateRef, Inject
77
} from 'angular2/angular2';
88

99
// todo: support template url
@@ -56,7 +56,7 @@ export class Accordion {
5656
export class AccordionTransclude implements OnInit{
5757
private accordionTransclude:TemplateRef;
5858

59-
constructor(private viewRef:ViewContainerRef) {
59+
constructor(@Inject(ViewContainerRef) private viewRef:ViewContainerRef) {
6060
}
6161

6262
onInit() {

components/common.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/// <reference path="../tsd.d.ts" />
2-
3-
import {Directive, TemplateRef, ViewContainerRef} from 'angular2/angular2';
2+
import {Directive, TemplateRef, ViewContainerRef, Inject} from 'angular2/angular2';
43

54
@Directive({
65
selector: '[ng-transclude]',
76
properties: ['ngTransclude']
87
})
98
export class NgTransclude {
10-
private _ngTransclude:any;
9+
private _ngTransclude: TemplateRef;
1110

1211
private set ngTransclude(templateRef:TemplateRef) {
1312
this._ngTransclude = templateRef;
@@ -20,6 +19,6 @@ export class NgTransclude {
2019
return this._ngTransclude;
2120
}
2221

23-
constructor(public viewRef:ViewContainerRef) {
22+
constructor(@Inject(ViewContainerRef) public viewRef:ViewContainerRef) {
2423
}
2524
}

components/typeahead/typeahead.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ export class TypeaheadContainer {
178178
events: ['typeaheadLoading', 'typeaheadNoResults', 'typeaheadOnSelect'],
179179
host: {
180180
'(keyup)': 'onChange($event)'
181-
},
182-
directives: [CORE_DIRECTIVES, TypeaheadContainer]
181+
}
183182
})
184183
export class Typeahead implements OnInit{
185184
public typeaheadLoading:EventEmitter = new EventEmitter();

0 commit comments

Comments
 (0)