destroying scope in domWrite feels odd to me... but I can't say if that will cause issues... just pointing it out... no action required.