This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "time":1409522400000 | |
| }, | |
| { | |
| "time":1409608800000 | |
| }, | |
| { | |
| "time":1409695200000 | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vm.isBiggerThenMinimum = function(el) { | |
| return vm.minimum <= el.Age; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <table> | |
| <th>Name</th> | |
| <th>Sirname</th> | |
| <th>Birthdate</th> | |
| <th>Age</th> | |
| <tr ng-repeat="contestant in vm.contestants | filter: vm.isBiggerThenMinimum"> | |
| <td>{{contestant.Name}}</td> | |
| <td>{{contestant.Sirname}}</td> | |
| <td>{{contestant.Occupation}}</td> | |
| <td>{{contestant.Age}}</td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "dependencies": { | |
| "angular": "~1.4.x", | |
| "angular-resource": "~1.4.0", | |
| "papaparse": "~4.1.2" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function parseCSV(file) { | |
| return $q(function(resolve, reject) { | |
| Papa.parse(file, { | |
| complete: resolve, | |
| error: reject, | |
| delimiter: ',', | |
| dynamicTyping: true, | |
| header:true, | |
| fields: ['Name', 'Sirname', 'Age', 'Occupation'] | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Name | Sirname | Age | Occupation | |
|---|---|---|---|---|
| John | Doe | 33 | Developer | |
| Sandra | Sanders | 20 | Student | |
| Peter | Peterson | 55 | Physicist |