Can we Loop within a subscribe method?

this.schoolCareerStore = this.SchoolPageStateStore.select(‘School_Sections_Text’).subscribe((data)=>{ console.log(“school_Career_store”,data) this.test2=data.Video console.log(this.test2) for(let value of this.test2) { if(value.type=’youtube’) { this.test1=value.number this.test==`https://www.youtube.com/embed/${this.test1}`; console.log(‘this is the url’,this.test) }

Continue reading