Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
f37e79af
Commit
f37e79af
authored
Sep 18, 2017
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f28e7506
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
app.js
app.js
+1
-1
welcome.component.ts
src/app/welcome.component.ts
+6
-3
welcome.html
src/app/welcome.html
+1
-1
No files found.
app.js
View file @
f37e79af
...
...
@@ -50,7 +50,7 @@ server.run = function (options) {
res
.
json
({
logined
:
true
,
user
:
{
id
:
1
,
username
:
"liuzheng"
,
name
:
"liuzheng"
}})
})
.
get
(
function
(
req
,
res
)
{
res
.
json
({
logined
:
fals
e
,
user
:
{
id
:
1
,
username
:
"liuzheng"
,
name
:
"liuzheng"
}})
res
.
json
({
logined
:
tru
e
,
user
:
{
id
:
1
,
username
:
"liuzheng"
,
name
:
"liuzheng"
}})
});
...
...
src/app/welcome.component.ts
View file @
f37e79af
/**
* Created by liuzheng on 2017/8/31.
*/
import
{
Component
}
from
'@angular/core'
;
import
{
AppService
}
from
'./app.service'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
AppService
,
DataStore
,
User
}
from
'./app.service'
;
@
Component
({
templateUrl
:
'./welcome.html'
,
providers
:
[
AppService
]
,
providers
:
[
AppService
]
// directives: [LeftbarComponent, TermComponent]
})
export
class
WelcomeComponent
{
DataStore
=
DataStore
;
// DataStore = DataStore;
}
src/app/welcome.html
View file @
f37e79af
...
...
@@ -7,7 +7,7 @@
<button
type=
"button"
class=
"btn btn-primary btn-sm"
data-toggle=
"offcanvas"
>
Toggle nav
</button>
</p>
<div
class=
"jumbotron"
>
<h1>
Hello, world!
</h1>
<h1>
Hello, world!
{{DataStore.user.username}}
</h1>
<p>
This is an example to show the potential of an offcanvas layout pattern in Bootstrap. Try some
responsive-range viewport sizes to see it in action.
</p>
</div>
...
...
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