This repository was archived by the owner on Jul 6, 2019. It is now read-only.
File tree 5 files changed +12
-10
lines changed
5 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
This is a fork of [ Angular Seed] ( https://github.com/angular/angular-seed ) but with changes needed for requireJS support.
4
4
5
- * AngularJS 1.2.0
5
+ * AngularJS 1.2.1
6
6
* RequireJS 2.1.9
7
7
* Full support for unit and e2e tests
8
8
* Support for Karma Test Runner 0.10+ (formerly Testacular)
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ require.config({
19
19
]
20
20
} ) ;
21
21
22
+ //http://code.angularjs.org/1.2.1/docs/guide/bootstrap#overview_deferred-bootstrap
23
+ window . name = "NG_DEFER_BOOTSTRAP!" ;
24
+
22
25
require ( [
23
26
'angular' ,
24
27
'app' ,
@@ -28,7 +31,6 @@ require( [
28
31
var $html = angular . element ( document . getElementsByTagName ( 'html' ) [ 0 ] ) ;
29
32
30
33
angular . element ( ) . ready ( function ( ) {
31
- $html . addClass ( 'ng-app' ) ;
32
- angular . bootstrap ( $html , [ app [ 'name' ] ] ) ;
34
+ angular . resumeBootstrap ( [ app [ 'name' ] ] ) ;
33
35
} ) ;
34
36
} ) ;
Original file line number Diff line number Diff line change 9
9
" tests"
10
10
],
11
11
"devDependencies" : {
12
- "angular" : " ~1.2.0 " ,
13
- "angular-scenario" : " ~1.2.0 " ,
14
- "angular-route" : " ~1.2.0 " ,
15
- "angular-mocks" : " ~1.2.0 " ,
12
+ "angular" : " ~1.2.1 " ,
13
+ "angular-scenario" : " ~1.2.1 " ,
14
+ "angular-route" : " ~1.2.1 " ,
15
+ "angular-mocks" : " ~1.2.1 " ,
16
16
"requirejs" : " ~2.1.9" ,
17
17
"requirejs-text" : " ~2.0.10"
18
18
}
Original file line number Diff line number Diff line change 1
1
<!doctype html>
2
- < html lang ="en ">
2
+ < html lang ="en " ng-app >
3
3
< head >
4
4
< title > Angular-RequireJS sample app</ title >
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
Original file line number Diff line number Diff line change 6
6
describe ( 'My Application' , function ( ) {
7
7
beforeEach ( function ( ) {
8
8
browser ( ) . navigateTo ( '/' ) ;
9
- sleep ( 0.5 ) ;
9
+ sleep ( 1 ) ;
10
10
} ) ;
11
11
12
12
@@ -17,7 +17,7 @@ describe('My Application', function() {
17
17
describe ( 'View 1' , function ( ) {
18
18
beforeEach ( function ( ) {
19
19
browser ( ) . navigateTo ( '#/view1' ) ;
20
- sleep ( 0.5 ) ;
20
+ sleep ( 1 ) ;
21
21
} ) ;
22
22
23
23
it ( 'should...' , function ( ) {
You can’t perform that action at this time.
0 commit comments