<div dir="ltr">Hello, list!<div>I'd like to add a non-AMD libĀ (AngularJS in this case) to my activity.</div><div><br></div><div>Here only points out how to add AMD ones:</div><div><a href="http://developer.sugarlabs.org/activity.md.html#using%20other%20javascript%20libraries">http://developer.sugarlabs.org/activity.md.html#using%20other%20javascript%20libraries</a><br>
</div><div><br></div><div>Of course there are workarounds like adding script tags (I'd rather not) or setting up the "shim" option from RequireJS config...</div><div><a href="https://github.com/code-sur/web-activity-POC/blob/master/js/loader.js">https://github.com/code-sur/web-activity-POC/blob/master/js/loader.js</a><br>
</div><div><br></div><div>But it seems that I shouldn't be touching the loader.js file, isn't it?</div><div><br></div><div>Is there a standard/preferred way to achieve this?<br></div><div><br></div><div><br></div>
<div>Thanks,</div><div>Code</div><div><br></div><div><br></div><div><br></div></div>