Idea: bootstrap angular.js apps by using custom HTML Elements. (as seen in Component Directives in Angular 2)
Example: See it in action
instead of writing <html ng-app="testApp">
one can easily use:
<test-app>
<my-customer></my-customer>
</test-app>
Note: This is just a small proof of concept
Include modLoader.js
after including angular.js and before including your app.
<script src="//code.angularjs.org/1.3.9/angular.js"></script>
<script src="modLoader.js"></script>
<script src="app.js"></script>
If you named your module myApp
you can run your app by just adding <my-app></my-app>
into your html. my-app is your application scope which means that all your code goes into that.
- refactor
- ng interceptor