TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ahmed elbarbary
NA
1.6k
275.3k
How to return value of Loc value from url angular 7 ?
Dec 28 2019 4:07 AM
How to return Loc value from link URL angular 7 ?
i need actually to return value of loc related to location
meaning i only need to return value 27737
i need to only value of Loc from json object from URL
so my question How to write service and calling
this service on component ngoninit event
I actually need to return only one value from this url
so that
How to write service and calling on component ngoninit event
apiservice.ts
How to create service return only one value from url object ?
http://192.168.4.233:9200/pcn/_search
and on component.ts
ngoninit
{
//How to call service and return data on variable
}
{
"_index"
:
"partsdb"
,
"_type"
:
"_doc"
,
"_id"
:
"10"
,
"_version"
: 32,
"_seq_no"
: 115683922,
"_primary_term"
: 2,
"found"
:
true
,
"_source"
: {
"PID"
: 10,
"CID"
: 1005070,
"CN"
:
"Texas Instruments Incorporated"
,
"PN"
:
"THS6002CDWP"
,
"Eq"
:
"Driver, Receiver and Transceiver Interface Transceiver 2 2 20HSOIC Tube"
,
"FID"
: 4,
"FN"
:
"THS6002"
,
"PaID"
: 5260,
"PaN"
:
"20-HSOIC"
,
"PLID"
: 523842,
"PLN"
:
"Driver, Receiver and Transceiver Interfaces"
,
"PLC"
:
"Active"
,
"PIDT"
: 2007,
"ObY"
: 2024,
"NPI"
:
false
,
"FT"
:
"THS6002 Dual Differential Line Driver/Receiver"
,
"DS"
:
"277399925"
,
"FIDT"
: 1998,
"LCRev"
: 20777025,
"Masked_ID"
: 6012356,
"Compliance"
: [
{
"RS"
:
"Compliant"
,
"RET"
:
"None"
,
"RV"
:
"2015/863"
,
"RST"
:
"Datasheet"
,
"CRS"
:
"Compliant"
,
"HTS"
:
"Compliant"
,
"RES"
:
"Compliant"
,
"RESV"
:
"JUL 2019 (201)"
,
"PNDR"
: 49416942,
"RHV"
: 963041,
"RECV"
: 273158534,
"HFR"
: 49416942
}
],
"
"OtherQualification"
: [
{
"FN"
:
"Reliability"
,
"FV"
:
"Yes"
,
"R"
: 283151994
},
{
"FN"
:
"Confidence Level"
,
"FV"
:
"60"
,
"R"
: 283151994
},
{
"FN"
:
"Fails Quantity"
,
"FV"
:
"0"
,
"R"
: 283151994
},
{
"FN"
:
"Test Duration"
,
"FV"
:
"1000"
,
"R"
: 283151994
},
{
"FN"
:
"Test Temperature"
,
"FV"
:
"125°C"
,
"R"
: 283151994
},
{
"FN"
:
"MTBF/MTTF(Hrs)"
,
"FV"
:
"5.58E8"
,
"R"
: 283151994
},
{
"FN"
:
"Activation Energy/Test Voltage"
,
"FV"
:
"0.7"
,
"R"
: 283151994
},
{
"FN"
:
"Calculated Failure Rate(FIT)"
,
"FV"
:
"1.8"
,
"R"
: 283151994
},
{
"FN"
:
"Usage Temperature"
,
"FV"
:
"55°C"
,
"R"
: 283151994
},
{
"FN"
:
"Sample Size"
,
"FV"
:
"6515"
,
"R"
: 283151994
},
{
"FN"
:
"Application"
,
"FV"
:
"Commercial"
,
"R"
: 10792132
}
],
"Parametric"
: [
{
"FN"
:
"Receiver Hysteresis"
,
"N"
:
"N/A"
,
"V"
: -9.999999990000000e+008,
"T"
: 1,
"O"
: 10
},
{
"FN"
:
"Data Rate"
,
"N"
:
"N/A"
,
"V"
: -9.999999990000000e+008,
"T"
: 1,
"O"
: 4
},
{
"FN"
:
"Minimum Operating Temperature"
,
"N"
:
"0°C"
,
"V"
: 0.000000000000000e+000,
"U"
:
"°C"
,
"T"
: 1,
"O"
: 11
},
{
"FN"
:
"Maximum Operating Temperature"
,
"N"
:
"70°C"
,
"V"
: 7.000000000000000e+001,
"U"
:
"°C"
,
"T"
: 1,
"O"
: 12
},
{
"FN"
:
"Maximum Supply Current"
,
"N"
:
"40mA"
,
"V"
: 4.000000000000000e-002,
"U"
:
"A"
,
"T"
: 1,
"O"
: 7
},
{
"FN"
:
"Minimum Supply Voltage"
,
"N"
:
"9V, ±4.5V"
,
"T"
: 1,
"O"
: 5
},
{
"FN"
:
"Maximum Supply Voltage"
,
"N"
:
"32V, ±16V"
,
"T"
: 1,
"O"
: 6
},
{
"FN"
:
"ESD Protection Voltage"
,
"N"
:
"N/A"
,
"V"
: -9.999999990000000e+008,
"T"
: 1,
"O"
: 13
},
{
"FN"
:
"ESD Protection"
,
"N"
:
"No"
,
"T"
: 1,
"O"
: 0
},
{
"FN"
:
"Type"
,
"N"
:
"Transceiver"
,
"T"
: 2,
"O"
: 1
},
{
"FN"
:
"Protocol"
,
"N"
:
"DSL"
,
"T"
: 2,
"O"
: 8
},
{
"FN"
:
"Number of Drivers"
,
"N"
:
"2"
,
"V"
: 2.000000000000000e+000,
"U"
:
""
,
"T"
: 2,
"O"
: 2
},
{
"FN"
:
"Number of Receivers"
,
"N"
:
"2"
,
"V"
: 2.000000000000000e+000,
"U"
:
""
,
"T"
: 2,
"O"
: 3
},
{
"FN"
:
"Duplex"
,
"N"
:
"Full"
,
"T"
: 2,
"O"
: 9
},
{
"FN"
:
"Interface Type"
,
"N"
:
"Others"
,
"T"
: 2,
"O"
: 0
}
],
"TradeCodes"
: [
{
"C"
:
"8542390001"
,
"CT"
:
"HTS-US"
,
"R"
: 266969774
}
],
"Tags"
: [
{
"T"
:
"Green"
},
{
"T"
:
"Supply Chain 3"
}
],
"Crs"
: [
{
"CrID"
: 5014000201,
"PckdD"
: 276,
"PinID"
: 0,
"UpgrID"
: 5014000069,
"CrsCnt"
: 0
}
],
"Locations"
: [
{
"Loc"
: 27737,
"Fab"
:
"Assembly"
}
],
"FMDs"
: [
{
"CMD"
: 624216,
so can you help me to return value of loc from location object
meaning i need to write service
then call it to return value of loc 27737
Reply
Answers (
3
)
How to assign value of latitude and langtide google map on e
How to return value of longtide and latitude from json ?