I've been using Google's CDN library to call AngularJS from my velocity template, but for some reason it won't load (while Bootstrap loads fine from a CDN). It works fine when I'm working locally, but when I test it in a Bamboo instance, it fails to load. Is there anything I need to set perhaps?
Thanks!
Hi Wilbert,
Thank you for your question.
Would be possible to inform how are you including your CDN by pasting a sample code, please?
Kind regards,
Rafael
<head> <title>CDPipeline Wallboard</title> <meta name="decorator" content="atl.general"> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js"></script> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> ${webResourceManager.requireResource("com.cobalt.cdpipeline.cdpipeline:cdpipeline-resources")} </head>
It appears that Angular is loaded when I inspect element, but I get errors in the console like:" ReferenceError: Can't find variable: plugin ". The strangest thing is when I download the angular source file and load it as a web resource, it works fine. Just not when using the above listed CDN I copied from the Google API library.
Thanks Rafael!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.