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
32e08eb3
Commit
32e08eb3
authored
May 20, 2017
by
Νίκος Κατσαούνος
Browse files
fixed bug in perfecture-view
parent
89c80177
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/components/infoviews/perfecture-view.ts
View file @
32e08eb3
...
...
@@ -85,39 +85,21 @@ import {
this
.
School$
.
next
(
x
);
console
.
log
(
x
[
0
].
id
,
"
perfectureID
"
);
this
.
perfecture
=
x
[
0
].
id
;
this
.
SchoolPerPerfSub
=
this
.
_hds
.
getSchoolPerPerfecture
(
this
.
perfecture
).
subscribe
(
data
=>
{
this
.
SchoolsPerPerf$
.
next
(
data
);
},
error
=>
{
this
.
SchoolsPerPerf$
.
next
([{}]);
console
.
log
(
"
Error Getting Schools
"
);
},
()
=>
console
.
log
(
"
Getting Schools
"
));
},
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
);
},
error
=>
{
this
.
SchoolsPerPerf$
.
next
([{}]);
console
.
log
(
"
Error Getting Schools
"
);
},
()
=>
console
.
log
(
"
Getting Schools
"
));
}
);
/*
this.SchoolPerPerfSub = this._hds.getSchoolPerPerfecture(this.perfecture).subscribe(data => {
this.SchoolsPerPerf$.next(data);
},
error => {
this.SchoolsPerPerf$.next([{}]);
console.log("Error Getting Schools");
},
() => console.log("Getting Schools"));
*/
()
=>
console
.
log
(
"
Getting School
"
));
...
...
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