message: feat(Modal): available to use 'BsModalRef.setClass' in modal component ngOnInit lifecycle
diff: @@ -114,17 +114,24 @@ export class BsModalService {
  .provide({ provide: ModalOptions, useValue: this.config })
  .provide({ provide: BsModalRef, useValue: bsModalRef })
  .attach(ModalContainerComponent)
  - .to('body')
  - .show({content, isAnimated: this.config.animated, initialState: this.config.initialState, bsModalService: this});
  - modalContainerRef.instance.level = this.getModalsCount();
  + .to('body');
  +
  bsModalRef.hide = () => {
  modalContainerRef.instance.hide();
  };
  - bsModalRef.content = modalLoader.getInnerComponent() || null;
  bsModalRef.setClass = (newClass: string) => {
  modalContainerRef.instance.config.class = newClass;
  };
  + // call 'show' method after assign setClass in bsModalRef.
  + // it makes modal component's bsModalRef available to call setClass method
  + modalContainerRef.show({
  + content, isAnimated: this.config.animated, initialState: this.config.initialState, bsModalService: this
  + });
  + modalContainerRef.instance.level = this.getModalsCount();
  +
  + bsModalRef.content = modalLoader.getInnerComponent() || null;
  +
  return bsModalRef;
  }
  