Standalone Search Box Example

Community Demo Practice sessions

Community Demo Practice sessions

This is new sample demo component test
n
AjayAncha
Community Manager

Community Demo Practice sessions

  • About Community
  • https://community.khoros.com/t5/Community-structure/tkb-p/communitystructure 
  • Khoros Learning stage
  • Demo Code snippet
    <!DOCTYPE html>
    <html>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.jshttps://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.jshttps://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.jshttps://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.jshttps://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.jshttps://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
    <body>
    
    <div ng-app="myApp" ng-controller="customersCtrl"> 
    
    <table>
      <tr ng-repeat="x in names">
        <td>{{ x.Name }}</td>
        <td>{{ x.Country }}</td>
      </tr>
    </table>
    
    </div>
    
    <script>
    var app = angular.module('myApp', []);
    app.controller('customersCtrl', function($scope, $http) {
        $http.get("customers.php")
        .then(function (response) {$scope.names = response.data.records;});
    });
    </script>
    
    </body>
    </html>​
0 REPLIES 0