Installed both the directive and mapbox-gl from npm. Added the .run(...) with access token to the end of the app.module('app',['mapboxgl-directive']) command. Added the HTML to my controller files. The error is being produced from the access token setting in the app.module().run() block of code as per the examples. I have tons of other controls installed but this is the first that did not work.
Version: 0.40.1 Angular: 1.5.9
Installed both the directive and mapbox-gl from npm. Added the .run(...) with access token to the end of the app.module('app',['mapboxgl-directive']) command. Added the HTML to my controller files. The error is being produced from the access token setting in the app.module().run() block of code as per the examples. I have tons of other controls installed but this is the first that did not work.
angular.module('app', [ 'agGrid', 'ui.router', 'ui.bootstrap', 'mapboxgl-directive' ]).run([function () { mapboxgl.accessToken = 'pk.eyJ1IjoibmFpbWlrYW4iLCJhIjoiY2lraXJkOXFjMDA0OXdhbTYzNTE0b2NtbiJ9.O64XgZQHNHcV2gwNLN2a0Q'; }])