angularjs - How to popup json data in Angular? -


  "devices": [     {       "sub_family": "6s plus",       "presales_description": "iphone 6 plus features stunning 5.5-inch retina hd display, amazing cameras , many advanced features, in breakthrough design. 5.5-inch retina hd display. a8 chip 64-bit desktop-class architecture. 8mp isight camera focus pixels , optical image stabilisation. touch id. fast 4g lte , wi-fi.1 long battery life.2 , ios 9 , icloud.",       "camera": true,       "device_type": "smartphone",       "presales_vendor": "apple",       "sim_form-factor": "nano",       "memory": 64,       "device_class": "hc14",       "tv capable": true,       "family": "iphone",       "specification_reference": "d20",       "variants": [         {           "colour": "space grey",           "default": true,           "presales_sequence": 961,           "s_code": "s0346715",           "credit_risk": 750,           "colour_code": "#898989",           "max_credit_term": 24,           "list_price": 759,           "presales_start_date": "02/04/2016"         },         {           "colour": "silver",           "default": true,           "presales_sequence": 961,           "s_code": "s0346717",           "credit_risk": 750,           "colour_code": "#e5e5e5",           "max_credit_term": 24,           "list_price": 759,           "presales_start_date": "02/04/2016"         }]} 

this code tried:

<a ng-click="showdialog(x)" >view full spec </a> <div id="modalopen" class="modalclass" > <div class="modaldesc"> <a ng-click="closedialog()" class="closemodal">x</a> <div> <ul> <li ng-repeat="data in x.variants">{{data.colour}}</li> </ul> </div> </div> </div>  


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -