Devacron.com

Angular 2.0.0-beta.16

angular2 logo

Angular2 team just released beta.16 which brings new features mostly in router and a number of fixes for forms, compiler etc. Here is the full list:

Bug Fixes

Features

BREAKING CHANGES

it('should wait for returned promises', injectAsync([FancyService], (service) => {
  return service.getAsyncValue().then((value) => { expect(value).toEqual('async value'); });
}));
it('should wait for returned promises', injectAsync([], () => {
  return somePromise.then(() => { expect(true).toEqual(true); });
}));

After:

it('should wait for returned promises', async(inject([FancyService], (service) => {
  service.getAsyncValue().then((value) => { expect(value).toEqual('async value'); });
})));
// Note that if there is no injection, we no longer need `inject` OR `injectAsync`.
it('should wait for returned promises', async(() => {
  somePromise.then() => { expect(true).toEqual(true); });
}));
inject([...], fakeAsync((...) => {...}))

After:

fakeAsync(inject([...], (...) => {...}))

Angular team is working hard to give as the RC1 and you can see the progress here.

Exit mobile version