This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 2 files changed +10
-6
lines changed
benchmarks/bootstrap-compile-bp
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
1
3
var app = angular . module ( 'boostrapCompileBenchmark' , [ ] ) ;
2
4
3
5
var commentDirectivesEnabled ;
@@ -13,7 +15,7 @@ app.config(function($compileProvider) {
13
15
. commentDirectivesEnabled ( commentDirectivesEnabled )
14
16
. cssClassDirectivesEnabled ( cssClassDirectivesEnabled ) ;
15
17
} )
16
- . controller ( 'DataController' , function ( $compile , $http , $rootScope ) {
18
+ . controller ( 'DataController' , function DataController ( $compile , $http , $rootScope ) {
17
19
18
20
this . isEA = ! commentDirectivesEnabled && ! cssClassDirectivesEnabled ;
19
21
this . isEAC = ! commentDirectivesEnabled && cssClassDirectivesEnabled ;
@@ -30,7 +32,7 @@ app.config(function($compileProvider) {
30
32
this . html = null ;
31
33
this . loadTemplate = function ( ) {
32
34
this . html = null ;
33
- $http . get ( location . pathname + this . selectedTemplate )
35
+ $http . get ( window . location . pathname + this . selectedTemplate )
34
36
. then ( function ( response ) { this . html = response . data ; } . bind ( this ) ) ;
35
37
} ;
36
38
@@ -57,5 +59,3 @@ app.config(function($compileProvider) {
57
59
} ) ;
58
60
59
61
} ) ;
60
-
61
-
Original file line number Diff line number Diff line change
1
+ /* eslint-env node */
2
+
3
+ 'use strict' ;
4
+
1
5
module . exports = function ( config ) {
2
6
config . set ( {
3
- scripts : [ {
7
+ scripts : [ {
4
8
id : 'angular' ,
5
9
src : '/build/angular.js'
6
10
} ,
7
11
{
8
- src : 'app.js' ,
12
+ src : 'app.js'
9
13
} ]
10
14
} ) ;
11
15
} ;
You can’t perform that action at this time.
0 commit comments