Skip to content

Instantly share code, notes, and snippets.

@in-async
Created March 11, 2015 09:06
Show Gist options
  • Save in-async/b772d838f702ba1c2b06 to your computer and use it in GitHub Desktop.
Save in-async/b772d838f702ba1c2b06 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body ng-app="myApp">
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<script>
angular.module('myLib', [])
.config(function() {
console.log('myLib config!');
})
.run(function() {
console.log('myLib run!');
});
angular.module('myApp', ['myLib'])
.config(['$locationProvider', function($locationProvider) {
console.log('myApp config!');
$locationProvider.html5Mode(true);
}])
.run(function() {
console.log('myApp run!');
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment