#76 Load External JS Files

Ever wanted to load an external javascript file on specific pages?  Let’s say you wanted to add the moment.js javascript file on only specific pages/routes instead of your entire app, you could do this in your controller:

You can see some more details at this SO answer.

Published by

Emad Ibrahim

Author of asp .net MVC & TDD, entrepreneur, passionate technologist, programmer and productivity nut. more at http://t.co/oSJXPvzu