I am trying to create an angular app which can be shipped and bootstrapped with little to no directives. Ideally you would include the js file:
<script src="myapp.js"></script>
Then put a div on a page:
<div id="myDiv"></div>
And bootstrap the app like:
angular.bootstrap(document.getElementById('myDiv'),['myApp']);
This, needless to say, doesn't work.
See this fiddle to see it working with the ng-* directives in place and this one without.
I guess my question is - is this even possible?
Ideally, I'd like to implement my app similar to Stripe:
<script
src="https://checkout.stripe.com/v2/checkout.js" class="stripe-button"
data-key="pk_test_czwzkTp2tactuLOEOqbMTRzG"
data-amount="2000"
data-name="Demo Site"
data-description="2 widgets ($20.00)"
data-currency="usd"
data-image="/128x128.png">
</script>
but couldn't find a way to get this to work either. The main goal is to not have to expose the angular specifics to use my app.