保存機能が正常に終了したら、どのようにng-bootstrapモーダルを閉じることができますか?ng-Bootstrapモーダル保存時
は、ここで私がこれまで持っているものです。
save(form, activeModal) {
this.goalsService.createNewGoal(this.team_id, form.value, this.date_created, this.date_modified)
.subscribe(
() => {
form.reset();
activeModal.dismiss('Successfully created Goal');
},
err => alert(`error creating goal ${err}`)
);
}
。最も重要な部分は、モーダル内の 'save'メソッドですか?それとも外? –
「閉じる」方法を有することができる –