var chooseDepartment = { props: ['departments', 'selected'], data: function(){ return { initSelect: this.selected, initFounded: "", } }, watch: { 'selected': function(){ this.initSelect = this.selected }, 'initSelect': function(){ this.$emit("selectok", this.initSelect) }, 'initFounded': function(){ this.$emit("foundedok", this.initFounded) } }, template: `