I am currently working on a browser application, where I have a specific file responsible for creating and initializing an object. This file is written in plain Javascript rather than being part of the Angular ecosystem like the rest of the app, which is based on AngularJS.
My goal is to incorporate promises into this file, and while Angular does have its own implementation of Q through angular's $q, I would prefer utilizing that instead of adding yet another library.
In addition, I am also making use of RequireJS within my project.
Hence, my question is: Is it possible to leverage $q within a non-Angular file?