Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Is there a way to define what client resources (css/js) load for an ngview in the controller? I know I can reference script tags directly in the partial view, but it would be nice to define resources for a partial in the controller.

share|improve this question
    
I'm not sure if thats the route you want to go, but you can dynamically load script in js, therefore you can load them in the controller using the same mechanism. –  user814628 Jan 8 at 4:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.