Skip to content

Commit f6931c9

Browse files
authored
Merge pull request softsimon#114 from CarServ/master
AOT Compatibility
2 parents 7c519d6 + 6ffc44e commit f6931c9

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
node_modules
22
src/*.js
33
src/*.js.map
4+
/compiled
5+
*.metadata.json
6+
*.map.js

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-2-dropdown-multiselect",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "Customizable dropdown multiselect in Angular 2 with bootstrap css.",
55
"main": "src/multiselect-dropdown.ts",
66
"repository": {
@@ -23,11 +23,13 @@
2323
"devDependencies": {
2424
"@angular/common": "^4.0.0",
2525
"@angular/compiler": "^4.0.0",
26+
"@angular/compiler-cli": "^4.0.0",
2627
"@angular/core": "^4.0.0",
2728
"@angular/forms": "^4.0.0",
28-
"rxjs": "^5.1.0",
29-
"zone.js": "^0.7.6",
29+
"@angular/platform-server": "^4.0.0",
3030
"codelyzer": "^2.0.0",
31-
"typescript": "^2.1.5"
31+
"rxjs": "^5.1.0",
32+
"typescript": "^2.2.2",
33+
"zone.js": "^0.7.6"
3234
}
3335
}

src/multiselect-dropdown.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ export class MultiSelectSearchFilter implements PipeTransform {
123123
<li *ngIf="settings.showCheckAll || settings.showUncheckAll" class="dropdown-divider divider"></li>
124124
<li class="dropdown-item" [ngStyle]="getItemStyle(option)" *ngFor="let option of options | searchFilter:searchFilterText"
125125
(click)="!option.isLabel && setSelected($event, option)" [class.dropdown-header]="option.isLabel">
126-
<template [ngIf]="option.isLabel">
126+
<ng-template [ngIf]="option.isLabel">
127127
{{ option.name }}
128-
</template>
128+
</ng-template>
129129
<a *ngIf="!option.isLabel" href="javascript:;" role="menuitem" tabindex="-1">
130130
<input *ngIf="settings.checkedStyle === 'checkboxes'" type="checkbox"
131131
[checked]="isSelected(option)" (click)="preventCheckboxCheck($event, option)"/>

tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@
99
"experimentalDecorators": true,
1010
"skipLibCheck": true,
1111
"skipDefaultLibCheck": true
12+
},
13+
"angularCompilerOptions": {
14+
"genDir": "compiled"
1215
}
1316
}

0 commit comments

Comments
 (0)