dev
Last change
on this file since dab7a9b was dab7a9b, checked in by Стојков Марко <mst@…>, 3 years ago |
Preview question component
|
-
Property mode
set to
100644
|
File size:
785 bytes
|
Line | |
---|
1 | import { Component, OnInit } from '@angular/core';
|
---|
2 | import { ActivatedRoute } from '@angular/router';
|
---|
3 | import { QuestionFacadeService } from 'src/app/core/state/question-facade.service';
|
---|
4 | import { ButtonType } from 'src/app/shared-app/components/generic/button/button.models';
|
---|
5 |
|
---|
6 | @Component({
|
---|
7 | selector: 'app-question-preview-general',
|
---|
8 | templateUrl: './question-preview-general.component.html',
|
---|
9 | styleUrls: ['./question-preview-general.component.scss']
|
---|
10 | })
|
---|
11 | export class QuestionPreviewGeneralComponent implements OnInit {
|
---|
12 | ButtonType = ButtonType;
|
---|
13 |
|
---|
14 | constructor(private questionFacade: QuestionFacadeService, private route: ActivatedRoute) {}
|
---|
15 |
|
---|
16 | ngOnInit(): void {
|
---|
17 | this.route.params.subscribe((params) => {
|
---|
18 | this.questionFacade.fetchQuestion(params.questionUid);
|
---|
19 | });
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.