Skip to content

Commit

Permalink
Merge pull request #441 from pmoehl/full-template-type-check
Browse files Browse the repository at this point in the history
Fix AOT fullTemplateTypeCheck compile errors
  • Loading branch information
softsimon authored Aug 15, 2018
2 parents b726ac9 + 46fd13c commit 3e933ce
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions demo/e2e/tsconfig.e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
"jasminewd2",
"node"
]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true
}
}
3 changes: 3 additions & 0 deletions demo/src/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"types": [],
"skipLibCheck": true
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true
},
"exclude": [
"test.ts",
"**/*.spec.ts"
Expand Down
3 changes: 3 additions & 0 deletions demo/src/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"node"
]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true
},
"files": [
"test.ts"
],
Expand Down
2 changes: 1 addition & 1 deletion src/dropdown/dropdown.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="dropdown" [ngClass]="settings.containerClasses" [class.open]="isVisible" (offClick)="clickedOutside($event)">
<div class="dropdown" [ngClass]="settings.containerClasses" [class.open]="isVisible" (offClick)="clickedOutside()">
<button type="button" class="dropdown-toggle" [ngClass]="settings.buttonClasses" (click)="toggleDropdown($event)" [disabled]="disabled"
[ssAutofocus]="!focusBack">
{{ title }}
Expand Down
4 changes: 2 additions & 2 deletions src/dropdown/off-click.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ export class OffClickDirective {
}

@HostListener('document:click', ['$event'])
private onDocumentClick(event: MouseEvent): void {
public onDocumentClick(event: MouseEvent): void {
if (event !== this._clickEvent) {
this.onOffClick.emit(event);
}
}

@HostListener('document:touchstart', ['$event'])
private onDocumentTouch(event: TouchEvent): void {
public onDocumentTouch(event: TouchEvent): void {
if (event !== this._touchEvent) {
this.onOffClick.emit(event);
}
Expand Down
2 changes: 1 addition & 1 deletion src/dropdown/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface IMultiSelectSettings {
* Should be less than searchMaxLimit to take effect
*/
searchMaxRenderedItems?: number;
checkedStyle?: 'checkboxes' | 'glyphicon' | 'fontawesome';
checkedStyle?: 'checkboxes' | 'glyphicon' | 'fontawesome' | 'visual';
buttonClasses?: string;
itemClasses?: string;
containerClasses?: string;
Expand Down

0 comments on commit 3e933ce

Please sign in to comment.