Skip to content

Commit ae45a51

Browse files
committed
fix(typings): fixed typescript error
1 parent db1b0ec commit ae45a51

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/star-rating.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {StarRatingController} from "./star-rating.controller";
2-
import templateUrl = require('./star-rating.tpl.html');
2+
import starRatingTpl = require('./star-rating.tpl.html');
33

44
export class StarRatingComponent implements ng.IComponentOptions {
55

66
public bindings: any;
7-
public controller: StarRatingController;
7+
public controller: any;
88
public templateUrl: string;
99
public replace: boolean;
1010

@@ -28,8 +28,7 @@ export class StarRatingComponent implements ng.IComponentOptions {
2828
};
2929
this.replace = true;
3030
this.controller = StarRatingController;
31-
this.templateUrl = templateUrl;
31+
this.templateUrl = <string>starRatingTpl;
3232
}
3333

34-
}
35-
34+
}

0 commit comments

Comments
 (0)