Skip to content

Commit

Permalink
feat(build): works good with [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed Sep 23, 2015
1 parent 9f62765 commit 31c513b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions components/accordion/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {
Component, View,
Directive, OnInit, OnDestroy,
NgClass, ViewContainerRef, TemplateRef
NgClass, ViewContainerRef, TemplateRef, Inject
} from 'angular2/angular2';

// todo: support template url
Expand Down Expand Up @@ -56,7 +56,7 @@ export class Accordion {
export class AccordionTransclude implements OnInit{
private accordionTransclude:TemplateRef;

constructor(private viewRef:ViewContainerRef) {
constructor(@Inject(ViewContainerRef) private viewRef:ViewContainerRef) {
}

onInit() {
Expand Down
7 changes: 3 additions & 4 deletions components/common.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/// <reference path="../tsd.d.ts" />

import {Directive, TemplateRef, ViewContainerRef} from 'angular2/angular2';
import {Directive, TemplateRef, ViewContainerRef, Inject} from 'angular2/angular2';

@Directive({
selector: '[ng-transclude]',
properties: ['ngTransclude']
})
export class NgTransclude {
private _ngTransclude:any;
private _ngTransclude: TemplateRef;

private set ngTransclude(templateRef:TemplateRef) {
this._ngTransclude = templateRef;
Expand All @@ -20,6 +19,6 @@ export class NgTransclude {
return this._ngTransclude;
}

constructor(public viewRef:ViewContainerRef) {
constructor(@Inject(ViewContainerRef) public viewRef:ViewContainerRef) {
}
}
3 changes: 1 addition & 2 deletions components/typeahead/typeahead.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ export class TypeaheadContainer {
events: ['typeaheadLoading', 'typeaheadNoResults', 'typeaheadOnSelect'],
host: {
'(keyup)': 'onChange($event)'
},
directives: [CORE_DIRECTIVES, TypeaheadContainer]
}
})
export class Typeahead implements OnInit{
public typeaheadLoading:EventEmitter = new EventEmitter();
Expand Down

0 comments on commit 31c513b

Please sign in to comment.