Trying to incorporate an npm module into a project built on Angularjs 1.4, Grunt, and Bower has been quite challenging.
The limitations of the angularjs framework make it difficult to utilize both Require and Import statements for accessing the node_modules folder.
Is there a way to effectively utilize both npm and bower modules within the same application?
Below is a condensed version of my app.js file:
(function(angular) {
'use strict';
angular
.module('AppApp', [dependencies])
.constant('appconfig',{})
.config(function(...){
$statprovider.state{...}
.run(function($state){
$state.go('login);
})
})(angular);
Currently, all dependencies are obtained through Bower and accessed via the index.html file. However, attempting to link directly to the node_modules folder using a script tag in the index.html does not seem to be effective.