angular2-bootstrap-confirm
Advanced tools
Changelog
0.5.0 (2016-06-17)
<a name="0.4.1"></a>
Changelog
0.4.0 (2016-05-10)
ConfirmOptions: allow confirm options to be instantiated by angulars DI
This allows you to just pass ConfirmOptions
directly to the providers of your app or component and angular will instantiate it for you. e.g.
providers: [ConfirmOptions], // previously angular would throw and you'd have to instantiate it yourself with useFactory
To migrate:
Before:
const options = new ConfirmOptions({
focusButton: 'confirm'
});
After:
const options = new ConfirmOptions();
Object.assign(options, {
focusButton: 'confirm'
});
<a name="0.3.3"></a>
Changelog
0.3.0 (2016-05-07)
import {Position} from 'angular2-bootstrap-confirm';
import {PositionService} from 'ng2-bootstrap/components/position';
provide(Position, {useClass: PositionService})
<a name="0.2.0"></a>
Changelog
0.2.0 (2016-05-07)
import {provide} from '@angular/core';
import {bootstrap} from '@angular/platform-browser-dynamic';
import {Confirm, ConfirmOptions, PositionService} from 'angular2-bootstrap-confirm';
import {PositionService as Ng2PositionService} from 'ng2-bootstrap/components/position';
// Or if you don't want to depend on the ng2-bootstrap module, use the bundled position service:
// import {PositionService as Ng2PositionService} from 'angular2-bootstrap-confirm/position/position';
bootstrap(MyApp, [
provide(PositionService, {useClass: Ng2PositionService})
]);