How to inject javascript library or file in Angular JS controller? / ¿Cómo inyectar un archivo o librería javascript en un controlador Angular JS?

29 views
Skip to first unread message

Miguel Ángel Simancas

unread,
Jul 2, 2015, 5:45:51 AM7/2/15
to ang...@googlegroups.com
I need use a printer javascript library in my AngularJS project, Is posible to inject this file in AngularJS?

Necesito usar una librería javascript de impresión inyectándola mi proyecto Angular JS, ¿es posible?

Thank you. Gracias

Bago Zonde

unread,
Jul 4, 2015, 5:47:00 PM7/4/15
to ang...@googlegroups.com
You need to inject this library as a service or factory, there is great article about that: http://www.codeproject.com/Tips/806530/Dependency-Injection-in-Controller-of-AngularJs
Reply all
Reply to author
Forward
0 new messages