1- ' use strict' ;
1+ " use strict" ;
22
33/*
44 The factories are created to provide data and services
1010 controller.
1111*/
1212
13- var app = angular . module ( ' igniteui-sample' , [ ' igniteui-directives' ] ) ;
13+ var app = angular . module ( " igniteui-sample" , [ " igniteui-directives" ] ) ;
1414
1515// controllers
16- app . controller ( ' gridController' ,
16+ app . controller ( " gridController" ,
1717
18- [ ' $scope' , ' northwind' ,
18+ [ " $scope" , " northwind" ,
1919 function ( $scope , northwind ) {
2020 // only needed until https://github.com/angular/angular.js/issues/6683 is resolved
2121 for ( var i = 0 ; i < northwind . data . length ; i ++ ) {
@@ -77,9 +77,9 @@ app.controller('gridController',
7777
7878 } ] ) ;
7979
80- app . controller ( ' comboController' ,
80+ app . controller ( " comboController" ,
8181
82- [ ' $scope' , ' northwind' ,
82+ [ " $scope" , " northwind" ,
8383 function ( $scope , northwind ) {
8484
8585 $scope . northwind = northwind . data ;
@@ -91,35 +91,35 @@ app.controller('comboController',
9191
9292 } ] ) ;
9393
94- app . controller ( ' dataChartController' ,
94+ app . controller ( " dataChartController" ,
9595
96- [ ' $scope' , ' populationData' ,
96+ [ " $scope" , " populationData" ,
9797 function ( $scope , populationData ) {
9898
9999 $scope . dataChart = populationData . data ;
100100
101101 } ] ) ;
102102
103- app . controller ( ' editorsController' ,
103+ app . controller ( " editorsController" ,
104104
105- [ ' $scope' ,
105+ [ " $scope" ,
106106 function ( $scope ) {
107107
108108 $scope . editors = {
109109 currency : 12.1 ,
110110 date : new Date ( ) ,
111- editor : ' Infragistics' ,
112- mask : ' 134-134-134' ,
111+ editor : " Infragistics" ,
112+ mask : " 134-134-134" ,
113113 numeric : 123 ,
114114 percent : 0.12 ,
115- text : ' Ignite UI'
115+ text : " Ignite UI"
116116 } ;
117117
118118 } ] ) ;
119119
120- app . controller ( ' treeController' ,
120+ app . controller ( " treeController" ,
121121
122- [ ' $scope' , ' productCategories' ,
122+ [ " $scope" , " productCategories" ,
123123 function ( $scope , productCategories ) {
124124
125125 $scope . ProductCategories = productCategories . data ;
@@ -159,44 +159,44 @@ app.controller('treeController',
159159 } ;
160160
161161 $scope . removeSelectedNode = function ( ) {
162- var selected = $ ( ' #tree1' ) . igTree ( ' selectedNode' ) ;
162+ var selected = $ ( " #tree1" ) . igTree ( " selectedNode" ) ;
163163 if ( selected . path !== null ) {
164- $ ( ' #tree1' ) . igTree ( ' removeAt' , selected . path ) ;
164+ $ ( " #tree1" ) . igTree ( " removeAt" , selected . path ) ;
165165 } else {
166- alert ( ' Select a node from the tree first' ) ;
166+ alert ( " Select a node from the tree first" ) ;
167167 }
168168 } ;
169169
170170 } ] ) ;
171171
172- app . controller ( ' hierarchicalGridController' ,
172+ app . controller ( " hierarchicalGridController" ,
173173
174- [ ' $scope' , ' northwindEmployees' ,
174+ [ " $scope" , " northwindEmployees" ,
175175 function ( $scope , northwindEmployees ) {
176176
177177 $scope . northwindEmployees = northwindEmployees . data ;
178178
179179 } ] ) ;
180180
181- app . controller ( ' tileManagerController' ,
181+ app . controller ( " tileManagerController" ,
182182
183- [ ' $scope' , ' candidates' ,
183+ [ " $scope" , " candidates" ,
184184 function ( $scope , candidates ) {
185185
186186 $scope . candidates = candidates . data ;
187187
188188 } ] ) ;
189- app . controller ( ' treeGridController' ,
189+ app . controller ( " treeGridController" ,
190190
191- [ ' $scope' , ' tasks' ,
191+ [ " $scope" , " tasks" ,
192192 function ( $scope , tasks ) {
193193
194194 $scope . tasks = tasks . data ;
195195
196196 } ] ) ;
197- app . controller ( ' pivotGridController' ,
197+ app . controller ( " pivotGridController" ,
198198
199- [ ' $scope' ,
199+ [ " $scope" ,
200200 function ( $scope ) {
201201
202202 $scope . pivotData = new $ . ig . OlapFlatDataSource ( {
@@ -218,7 +218,7 @@ app.controller('pivotGridController',
218218 {
219219 caption : "Units Sold" , name : "UnitsSold" ,
220220 // returns a function that will be used as sum aggregator on the 'UnitsSold property' of the data objects
221- aggregator : $ . ig . OlapUtilities . prototype . sumAggregator ( ' UnitsSold' )
221+ aggregator : $ . ig . OlapUtilities . prototype . sumAggregator ( " UnitsSold" )
222222 } ]
223223 } ,
224224 dimensions : [ // for each dimension name and hierarchies are required
@@ -255,21 +255,21 @@ app.controller('pivotGridController',
255255 measures : "[Measures].[UnitsSold]"
256256 } ) ;
257257 } ] ) ;
258- app . controller ( ' pivotGridXmlaController' ,
258+ app . controller ( " pivotGridXmlaController" ,
259259
260- [ ' $scope' ,
260+ [ " $scope" ,
261261 function ( $scope ) {
262262 $scope . xmlaDataSource = new $ . ig . OlapXmlaDataSource ( {
263- serverUrl : ' http://sampledata.infragistics.com/olap/msmdpump.dll' ,
264- catalog : ' Adventure Works DW Standard Edition' ,
265- cube : ' Adventure Works' ,
263+ serverUrl : " http://sampledata.infragistics.com/olap/msmdpump.dll" ,
264+ catalog : " Adventure Works DW Standard Edition" ,
265+ cube : " Adventure Works" ,
266266 rows : "[Ship Date].[Calendar]" ,
267267 columns : "[Delivery Date].[Calendar]" ,
268268 measures : "[Measures].[Product Gross Profit Margin Status],[Measures].[Product Gross Profit Margin Goal]" ,
269269 } ) ;
270270 } ] ) ;
271- app . controller ( ' htmlEditorController' ,
272- [ ' $scope' ,
271+ app . controller ( " htmlEditorController" ,
272+ [ " $scope" ,
273273 function ( $scope ) {
274274 $scope . data = "<p>Ignite UI controls:</p><p><ul><li>igEditors</li><li>igHtmlEditor</li><li>igGrid</li><li>igDataChart</li><li>etc.</li></ul></p>" ;
275275 } ] ) ;
0 commit comments