Skip to content

Commit 78a02a9

Browse files
committed
main angularjs starting file
1 parent 69c8b6e commit 78a02a9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

app/riccardo.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* Riccardo's Front End exercise module definition
3+
*
4+
* @module riccardo
5+
* @namespace riccardo
6+
* @description
7+
* Defines the main module for the application.
8+
*/
9+
10+
(function (angular) {
11+
'use strict';
12+
13+
if (!angular) {
14+
throw 'It seems that angular.js is not loaded into the project or maybe this script is loaded before angular.js reference.';
15+
} else {
16+
angular.module('riccardo', [
17+
'ui.router'
18+
]);
19+
}
20+
})(this.angular);

0 commit comments

Comments
 (0)