質問編集履歴

1

コードを修正

2016/01/22 00:02

投稿

rontec
rontec

スコア169

test CHANGED
File without changes
test CHANGED
@@ -8,9 +8,9 @@
8
8
 
9
9
  ```javascript
10
10
 
11
- angular.js:68 Uncaught Error: [$injector:modulerr] Failed to instantiate module test due to:
11
+ Failed to instantiate module testApp due to:
12
12
 
13
- Error: [$injector:nomod] Module 'test' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
13
+ Error: [$injector:nomod] Module 'testApp' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
14
14
 
15
15
  ```
16
16
 
@@ -38,9 +38,13 @@
38
38
 
39
39
  ```
40
40
 
41
- angular.module('test', []).controller('myController', ['$scope', function($scope) {
41
+ var app = angular.module('testApp', []);
42
42
 
43
+ app.controller('myController', ['$scope', function($scope) {
44
+
43
-
45
+
46
+
47
+ }]);
44
48
 
45
49
  ```
46
50