Hyperledher How to convert formControlName value to JSON Format

0 votes
<textarea [ngModel]="offers" formControlName="offers" 
           class="form-control" rows="3">
</textarea>

It returns output [object Object]. Now how can I convert formControlName (offers is array) to JSON?

Nov 12, 2018 in Blockchain by digger
• 26,740 points
910 views

1 answer to this question.

0 votes
<textarea [ngModel]="offers[0] | json" formControlName="offers" class="form- 
 control" rows="3"></textarea>

This will show data in JSON format

answered Nov 12, 2018 by Omkar
• 69,210 points

Related Questions In Blockchain

0 votes
1 answer
+1 vote
3 answers

How to convert timestamp to readable format in blockchain.info?

You are talking about the block_time property ...READ MORE

answered Apr 29, 2019 in Blockchain by Raghu
9,936 views
0 votes
1 answer

How to get a value from SQLite to convert it?

Server side: b = BtcConverter(force_decimal=True) p1btc = b.get_latest_price('USD') p1btcr = ...READ MORE

answered Sep 6, 2018 in Blockchain by digger
• 26,740 points
492 views
+1 vote
2 answers

How to return value from a chaincode in Hyperledger Fabric?

Hyperledger Fabric supports only 2 types of ...READ MORE

answered Jun 13, 2018 in Blockchain by Perry
• 17,100 points
2,585 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,215 views
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,740 points
708 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,663 views
0 votes
1 answer

Hyperledger Fabric: How to convert channel.tx artifact into json?

You can use configtxgen to do this: configtxgen ...READ MORE

answered Nov 8, 2018 in Blockchain by Omkar
• 69,210 points
666 views
0 votes
1 answer

Solidity: How to return id from hash value?

You can do it by storing the hash ...READ MORE

answered Oct 22, 2018 in Blockchain by Omkar
• 69,210 points
2,033 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP