These are chat archives for Automattic/mongoose

16th
Nov 2016
Kameron Robinson
@RobinsonKameron
Nov 16 2016 01:34
Hey Everyone, quick Q. Inside of a Schema is it bad practice to use the schema.pre('save', ()=>{}) to make an api call to a service to attempt and add data for use at a later time?
Or should I handle that somewhere else?
msitruk
@msitruk
Nov 16 2016 12:39
Hey how can i track an event in angular2 ? i use this ng2 package : https://www.npmjs.com/package/ng2-bs3-modal on their doc they said "onOpen: EventEmitter Emits when ModalComponent.open() is called." so i would like to change content of my modal before event happend ?
oups wrong place