This file contains 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
export class HomeService { | |
constructor($log, $window, $rootScope, $http, $resource) { | |
'ngInject'; | |
this.$log = $log; | |
this.$http = $http; | |
this.$window = $window; | |
this.$rootScope = $rootScope; | |
This file contains 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
var arr1 = [ | |
['A', 'B', 'C'], | |
['D', 'E', 'F'] | |
]; | |
var arr2 = [ | |
['A', 'B', 'C'], | |
[] | |
]; |
This file contains 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
export function SimpleGithubUser ($http) { | |
'ngInject'; | |
var apiUrl = 'https://api.github.com/'; | |
// instantiate our initial object | |
var SimpleGithubUser = function(username) { | |
this.username = username; | |
this.profile = this.getProfile(); | |
}; |
This file contains 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
//assuming array look like this. | |
var arr = [ | |
["Status", "Name", "Marks", "Position"], | |
["active", Sarfaraz, 10.0, "Front-end-dev"], | |
["active", John, 10.0, "Front-end-dev"], | |
["deactive", Raganar, 10.0, "UI designer"], | |
]; | |
console.log (arrToObject(arr)); |
NewerOlder