Skip to content

Commit

Permalink
feat(): Migrated on Angular 2.0.0-beta.17
Browse files Browse the repository at this point in the history
  • Loading branch information
akserg committed May 3, 2016
1 parent 9998263 commit 2a9568c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bundles/ng2-toasty.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ System.registerDynamic("src/toasty.container", ["angular2/core", "angular2/commo
selector: 'ng2-toasty',
encapsulation: core_1.ViewEncapsulation.None,
directives: [common_1.CORE_DIRECTIVES, toasty_component_1.Toast],
template: "\n <div id=\"toasty\" [ngClass]=\"[position]\">\n <ng2-toast *ngFor=\"#toast of toasts\" [toast]=\"toast\" (closeToast)=\"closeToast(toast)\"></ng2-toast>\n </div>"
template: "\n <div id=\"toasty\" [ngClass]=\"[position]\">\n <ng2-toast *ngFor=\"let toast of toasts\" [toast]=\"toast\" (closeToast)=\"closeToast(toast)\"></ng2-toast>\n </div>"
}), __metadata('design:paramtypes', [toasty_config_1.ToastyConfig, toasty_service_1.ToastyService])], Toasty);
return Toasty;
})();
Expand Down
2 changes: 1 addition & 1 deletion bundles/ng2-toasty.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
"typings": "./ng2-toasty.d.ts",
"homepage": "https://github.com/akserg/ng2-toasty",
"devDependencies": {
"angular2": "~2.0.0-beta.14",
"angular2": "~2.0.0-beta.17",
"es6-promise": "~3.1.2",
"es6-shim": "~0.35.0",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.2",
"zone.js": "~0.6.6",
"rxjs": "5.0.0-beta.6",
"zone.js": "~0.6.12",
"cz-conventional-changelog": "^1.1.5",
"jasmine-core": "~2.3.4",
"karma": "~0.13.15",
Expand Down
2 changes: 1 addition & 1 deletion src/toasty.container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {Toast} from './toasty.component';
directives: [CORE_DIRECTIVES, Toast],
template: `
<div id="toasty" [ngClass]="[position]">
<ng2-toast *ngFor="#toast of toasts" [toast]="toast" (closeToast)="closeToast(toast)"></ng2-toast>
<ng2-toast *ngFor="let toast of toasts" [toast]="toast" (closeToast)="closeToast(toast)"></ng2-toast>
</div>`
})
export class Toasty implements OnInit {
Expand Down
7 changes: 4 additions & 3 deletions tests/toasty.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {
beforeEach,
it,
inject,
injectAsync,
//injectAsync,
async,
beforeEachProviders,
TestComponentBuilder,
ComponentFixture,
Expand Down Expand Up @@ -43,7 +44,7 @@ export function main() {
});


beforeEach(injectAsync([TestComponentBuilder], (tcb:TestComponentBuilder) => {
beforeEach(inject([TestComponentBuilder], (tcb:TestComponentBuilder) => {
return tcb.createAsync(Toast).then((cf:ComponentFixture) => {
componentFixture = cf;
componentFixture.componentInstance.toast = toast;
Expand All @@ -52,7 +53,7 @@ export function main() {
}));

it('should be defined', () => {
const element = componentFixture.nativeElement;
const element = componentFixture.elementRef.nativeElement;
expect(element.querySelector('.toast')).toBeDefined();
});

Expand Down
Loading

0 comments on commit 2a9568c

Please sign in to comment.