Using angular routing, where is the JavaScript code such as the image carousel added to the subpage displayed in ng-view written?
走同样的路,发现不同的人生
Write it in the controller of the sub-page
Write it in the controller of the sub-page