Skip to content

Commit

Permalink
fix: restore compatibility with 5.x
Browse files Browse the repository at this point in the history
Closes #1791

Closes #1792
  • Loading branch information
pkozlowski-opensource committed Aug 30, 2017
1 parent d980e41 commit f92f1e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/datepicker/datepicker-month-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {DayTemplateContext} from './datepicker-day-template-context';
<div *ngFor="let day of week.days" (click)="doSelect(day)" class="ngb-dp-day" [class.disabled]="day.context.disabled"
[class.hidden]="isHidden(day)">
<ng-template [ngIf]="!isHidden(day)">
<ng-template [ngTemplateOutlet]="dayTemplate" [ngOutletContext]="day.context"></ng-template>
<ng-template [ngTemplateOutlet]="dayTemplate" [ngTemplateOutletContext]="day.context"></ng-template>
</ng-template>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/rating/rating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const NGB_RATING_VALUE_ACCESSOR = {
<ng-template ngFor [ngForOf]="contexts" let-index="index">
<span class="sr-only">({{ index < nextRate ? '*' : ' ' }})</span>
<span (mouseenter)="enter(index + 1)" (click)="handleClick(index + 1)" [style.cursor]="readonly || disabled ? 'default' : 'pointer'">
<ng-template [ngTemplateOutlet]="starTemplate || t" [ngOutletContext]="contexts[index]"></ng-template>
<ng-template [ngTemplateOutlet]="starTemplate || t" [ngTemplateOutletContext]="contexts[index]"></ng-template>
</span>
</ng-template>
`,
Expand Down
2 changes: 1 addition & 1 deletion src/typeahead/typeahead-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface ResultTemplateContext {
(mouseenter)="markActive(idx)"
(click)="select(result)">
<ng-template [ngTemplateOutlet]="resultTemplate || rt"
[ngOutletContext]="{result: result, term: term, formatter: formatter}"></ng-template>
[ngTemplateOutletContext]="{result: result, term: term, formatter: formatter}"></ng-template>
</button>
</ng-template>
`
Expand Down

0 comments on commit f92f1e5

Please sign in to comment.