Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mortezavifar
Queuing2
Commits
2a110ad5
"src/app/admin/vscode:/vscode.git/clone" did not exist on "5a26d6f9ceedea38b1e31df51352b22666ed3666"
Commit
2a110ad5
authored
Jun 23, 2021
by
abbasmortezavifar
Browse files
add input
parent
d6471955
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/server.service.ts
View file @
2a110ad5
...
@@ -37,7 +37,10 @@ export class ServerService {
...
@@ -37,7 +37,10 @@ export class ServerService {
let
url
:
string
=
'
http://127.0.0.1:8000/api/chenge/
'
+
id
;
let
url
:
string
=
'
http://127.0.0.1:8000/api/chenge/
'
+
id
;
return
this
.
http
.
get
<
iSick
[]
>
(
url
).
pipe
(
catchError
(
this
.
showError
));
return
this
.
http
.
get
<
iSick
[]
>
(
url
).
pipe
(
catchError
(
this
.
showError
));
}
}
srhItem
(
value
:
string
)
{
let
url
:
string
=
'
http://127.0.0.1:8000/api/serch/
'
+
value
;
return
this
.
http
.
get
<
iSick
[]
>
(
url
).
pipe
(
catchError
(
this
.
showError
));
}
showError
(
errorResponse
:
HttpErrorResponse
)
{
showError
(
errorResponse
:
HttpErrorResponse
)
{
if
(
errorResponse
.
error
instanceof
ErrorEvent
)
{
if
(
errorResponse
.
error
instanceof
ErrorEvent
)
{
console
.
error
(
'
client side error
'
,
errorResponse
.
error
.
message
);
console
.
error
(
'
client side error
'
,
errorResponse
.
error
.
message
);
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment