Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Χάρης Παπαδόπουλος
e-epal
Commits
a5defe55
Commit
a5defe55
authored
May 18, 2017
by
Open Source Developer
Browse files
perfecture
parent
9102fd78
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/components/infoviews/perfecture-view.ts
View file @
a5defe55
...
...
@@ -55,8 +55,11 @@ import {
private
CoursesPerPerfSub
:
Subscription
;
private
StudentsSize$
:
BehaviorSubject
<
any
>
;
private
StudentsSizeSub
:
Subscription
;
public
perfecture
=
1
;
public
perfecture
;
private
regionActive
=
<
number
>-
1
;
private
School$
:
BehaviorSubject
<
any
>
;
private
SchoolSub
:
Subscription
;
constructor
(
private
fb
:
FormBuilder
,
...
...
@@ -67,6 +70,7 @@ import {
this
.
LimitPerCateg$
=
new
BehaviorSubject
([{}]);
this
.
CoursesPerPerf$
=
new
BehaviorSubject
([{}]);
this
.
StudentsSize$
=
new
BehaviorSubject
({});
this
.
School$
=
new
BehaviorSubject
([{}]);
this
.
formGroup
=
this
.
fb
.
group
({
});
...
...
@@ -77,6 +81,19 @@ import {
ngOnInit
()
{
this
.
SchoolSub
=
this
.
_hds
.
getSchoolId
().
subscribe
(
x
=>
{
this
.
School$
.
next
(
x
);
console
.
log
(
x
[
0
].
id
,
"
perfectureID
"
);
this
.
perfecture
=
x
[
0
].
id
;
},
error
=>
{
this
.
School$
.
next
([{}]);
console
.
log
(
"
Error Getting School
"
);
},
()
=>
console
.
log
(
"
Getting School
"
));
this
.
SchoolPerPerfSub
=
this
.
_hds
.
getSchoolPerPerfecture
(
this
.
perfecture
).
subscribe
(
data
=>
{
this
.
SchoolsPerPerf$
.
next
(
data
);
...
...
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