-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from GoogolApp/editProfile
Edit profile, and view Followers and Following
- Loading branch information
Showing
29 changed files
with
561 additions
and
112 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export class Team{ | ||
_id : string; | ||
name : string; | ||
teamLogoUrl : string; | ||
|
||
|
||
constructor(name?: string){ | ||
this.name = name; | ||
this.teamLogoUrl = ""; | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { HttpClient, HttpHeaders } from '@angular/common/http'; | ||
import { Observable } from 'rxjs/Observable'; | ||
import 'rxjs/add/operator/map'; | ||
|
||
import { Team } from '../_models/team'; | ||
import { AppUrl } from '../_config/url.config'; | ||
|
||
@Injectable() | ||
export class TeamService { | ||
|
||
private url: string = AppUrl.root + '/teams'; | ||
private httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' }) }; | ||
|
||
constructor(private http: HttpClient) { } | ||
|
||
getAllTeams() : Observable<Team[]> { | ||
return this.http.get<Team[]>(this.url, this.httpOptions) | ||
.map(teams => { | ||
return teams; | ||
}); | ||
} | ||
} |
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
page-edit-profile { | ||
.footer { | ||
position: absolute; | ||
bottom:5%; | ||
width:92%; | ||
|
||
input{ | ||
margin-bottom: 5%; | ||
} | ||
|
||
.googol-btn-light{ | ||
margin-bottom: 10px; | ||
} | ||
|
||
.googol-btn-danger{ | ||
margin-bottom: 3px; | ||
} | ||
|
||
} |
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
Oops, something went wrong.