Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body data-ng-app="some.app">
  <somesome-module></somesome-module>
</body>
</html>
 
(function (angular) {
    'use strict';
    function somesomeModule() {
        return {
            restrict: 'EA',
            template: '<span>This is my directive with terrible naming</span>'
        };
    }
    somesomeModule.$inject = [];
    angular.module('some.someModule', [])
        .directive('somesomeModule', somesomeModule);
}(window.angular));
(function (angular) {
    'use strict';
    var someApp = angular.module('some.app', ['some.someModule'])
        .config(function () {
            console.log('Hello from config');
        })
        .run(function () {
            console.log('Hello from run');
        });
}(window.angular));
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers