html - format data and display in view using Angular -
i have page built using php , convert angular. services, controller , stuff done , can data need display. problem cannot display have php page. world great.
php page view:
angular page view:
code i'm using angular side:
<form> <div class="row" ng-repeat="x in configitems" ng-init=" header=''"> <div class="col-sm-12" ng-if="header != x.configgroup" ng-init="header=x.configgroup"> <label> <strong nf><h4 style="font-weight:bold;">{{x.configgroup}}</h4></strong> </label> <hr> </div> <div class="col-sm-6 form-horizontal" ng-if="x.datatype != 'boolean'"> <div class="form-group"> <label for="varforuse" class="col-sm-4 control-label align-text-left">{{x.friendlyname}}</label> <div class="col-sm-8"> <input type="text" class="form-control" id="varforuse" name="varforuse" value="{{x.value}}" /> </div> </div> </div> <div class="col-sm-6 form-horizontal switch-form-item" ng-if="x.datatype == 'boolean'"> <div class="form-group"> <div class="question col-sm-4 control-label align-text-left"> {{x.friendlyname}} </div> <div class="col-sm-8"> <div class="switch align-switch-right"> <input type="hidden" name="varforuse" value="0" /> <input type="checkbox" onchange="settruefalse(this)" class="cmn-toggle cmn-toggle-round-flat" id="varforuse" name="varforuse" value="{{x.value}}" checked/> <label for="varforuse"></label> </div> </div> </div> </div> </div> </form>
Comments
Post a Comment