Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
2c24b863
Commit
2c24b863
authored
Sep 05, 2016
by
h3remi7
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add apps service
parent
66424af4
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
3 deletions
+40
-3
app/apps.component.css
app/apps.component.css
+2
-0
app/apps.component.html
app/apps.component.html
+1
-0
app/apps.component.ts
app/apps.component.ts
+10
-1
app/apps.service.ts
app/apps.service.ts
+19
-0
app/candy.component.css
app/candy.component.css
+2
-0
app/mycard.component.css
app/mycard.component.css
+1
-0
app/mycard.module.ts
app/mycard.module.ts
+5
-2
apps.json
apps.json
+0
-0
No files found.
app/apps.component.css
View file @
2c24b863
...
...
@@ -2,4 +2,6 @@
background-color
:
darkslategray
;
width
:
280px
;
flex-shrink
:
0
;
}
\ No newline at end of file
app/apps.component.html
View file @
2c24b863
...
...
@@ -4,4 +4,5 @@
</a>
<a
href=
"#"
class=
"list-group-item list-group-item-action"
>
绯想天
</a>
<a
href=
"#"
class=
"list-group-item list-group-item-action disabled"
>
永远消失的幻想乡
</a>
<a
href=
"#"
class=
"list-group-item list-group-item-action disabled"
></a>
</div>
\ No newline at end of file
app/apps.component.ts
View file @
2c24b863
...
...
@@ -2,9 +2,18 @@
* Created by zh99998 on 16/9/2.
*/
import
{
Component
}
from
'
@angular/core
'
;
import
{
AppsService
}
from
'
./apps.service
'
@
Component
({
selector
:
'
apps
'
,
templateUrl
:
'
app/apps.component.html
'
,
styleUrls
:
[
'
app/apps.component.css
'
],
})
export
class
AppsComponent
{
}
export
class
AppsComponent
{
data
=
''
;
constructor
(
private
appsService
:
AppsService
)
{
appsService
.
getApps
();
//this.data = appsService.data;
}
}
app/apps.service.ts
0 → 100644
View file @
2c24b863
import
{
Injectable
}
from
'
@angular/core
'
;
import
{
Http
,
Response
}
from
'
@angular/http
'
;
//import { Observable } from 'rxjs';
//import 'rxjs/add/operator/map'
import
'
rxjs/Rx
'
;
@
Injectable
()
export
class
AppsService
{
constructor
(
private
http
:
Http
)
{}
data
=
''
;
getApps
()
{
console
.
log
(
123
);
this
.
http
.
get
(
'
./apps.json
'
).
map
((
res
)
=>
{
console
.
log
(
res
)})
//.subscribe(res => this.data = res);
}
}
\ No newline at end of file
app/candy.component.css
View file @
2c24b863
...
...
@@ -2,4 +2,6 @@
background-color
:
#336699
;
height
:
236px
;
flex-shrink
:
0
;
}
\ No newline at end of file
app/mycard.component.css
View file @
2c24b863
...
...
@@ -11,6 +11,7 @@ body {
nav
{
-webkit-app-region
:
drag
;
padding-right
:
0
;
flex-shrink
:
0
;
}
nav
.darwin
{
...
...
app/mycard.module.ts
View file @
2c24b863
import
{
NgModule
}
from
'
@angular/core
'
;
import
{
BrowserModule
}
from
'
@angular/platform-browser
'
;
import
{
HttpModule
}
from
'
@angular/http
'
;
import
{
MyCardComponent
}
from
'
./mycard.component
'
;
import
{
LoginComponent
}
from
'
./login.component
'
;
import
{
StoreComponent
}
from
'
./store.component
'
;
...
...
@@ -11,12 +13,13 @@ import { CandyComponent } from './candy.component';
import
{
CommunityComponent
}
from
'
./community.component
'
;
import
{
RoutingService
}
from
'
./routing.service
'
;
import
{
AppsService
}
from
'
./apps.service
'
;
@
NgModule
({
imports
:
[
BrowserModule
],
imports
:
[
BrowserModule
,
HttpModule
],
declarations
:
[
MyCardComponent
,
LoginComponent
,
StoreComponent
,
LobbyComponent
,
CommunityComponent
,
AppsComponent
,
AppDetailComponent
,
RosterComponent
,
CandyComponent
],
bootstrap
:
[
MyCardComponent
],
providers
:
[
RoutingService
],
providers
:
[
RoutingService
,
AppsService
],
})
export
class
MyCard
{
}
\ No newline at end of file
apps.json
0 → 100644
View file @
2c24b863
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment