Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Commits
f7fce1dd
Verified
Commit
f7fce1dd
authored
7 years ago
by
Thomas Lenz
Committed by
Lukas Maximilian Kimpel
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implement fake-data in component.ts
parent
fad66cde
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!89
Resolve "content types (HTML)"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/creator-choice-content/creator-choice-content.component.ts
+15
-0
15 additions, 0 deletions
...reator-choice-content/creator-choice-content.component.ts
with
15 additions
and
0 deletions
src/app/creator-choice-content/creator-choice-content.component.ts
+
15
−
0
View file @
f7fce1dd
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
AnswerOption
}
from
'
../answer-option
'
;
@
Component
({
selector
:
'
app-creator-choice-content
'
,
...
...
@@ -6,10 +7,24 @@ import { Component, OnInit } from '@angular/core';
styleUrls
:
[
'
./creator-choice-content.component.scss
'
]
})
export
class
CreatorChoiceContentComponent
implements
OnInit
{
subject
=
'
TestSubject
'
;
body
=
'
TestBody
'
;
newLabel
:
string
;
newPoints
:
string
;
options
=
[
new
AnswerOption
(
'
A - Giraffe
'
,
'
0
'
),
new
AnswerOption
(
'
B - Bär
'
,
'
0
'
),
new
AnswerOption
(
'
C - bra
'
,
'
10
'
)
];
constructor
()
{
}
ngOnInit
()
{
}
addAnswer
()
{
this
.
options
.
push
(
new
AnswerOption
(
this
.
newLabel
,
this
.
newPoints
));
this
.
newLabel
=
''
;
this
.
newPoints
=
''
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment