Searching in a list by using Aangular Js

We have learn about angular js, In this blog we search result in a list by angular js methodlogy

Searching in a list by using Aangular Js code (filter:test)

<div ng-app="myApp" ng-controller="customersCtrl">
  <table align="center" width="60%">
    <tr>
      <td colspan="3" align="right"><input type="text" ng-model="test"></td>
    </tr>
    <tr>
      <td>Group ID</td>
      <td>Group Name</td>
      <td>Group Description</td>
    </tr>
    <tr ng-repeat="x in group_name | filter:test">
      <td>{{ x.groupID }}</td>
      <td>{{ x.group_name }}</td>
      <td>{{ x.group_description }}</td>
    </tr>
  </table>
</div>

We got this blog from www.w3schools.com for blog more information Click Here

How to set table colon in Lower and Upper case letter in Angular Js

To set table list, colon in Lower and Upper case letter in Angular Js by using this code (lastName | uppercase) and (lastName | lowercase)

//Uppar Case
<div ng-app="" ng-controller="personCtrl">
  <p>The name is {{ lastName | uppercase }}</p>
</div>
//Lower Case
<div ng-app="" ng-controller="personCtrl">
  <p>The name is {{ lastName | lowercase }}</p>
</div>

We got this blog from www.w3schools.com for blog more information Click Here

How to set list order by in Angular Js

We have learn about angular js to set list in ascending and descending order.

//To set table list as an order by in Angular Js by using this code (orderBy : 'Country')
<div>
  <table>
    <tbody>
      <tr ng-repeat=”x in names | orderBy : ‘Country’ ” >
        <td>{{ x.Name }}</td>
        <td>{{ x.Country }}</td>
      </tr>
    </tbody>
  </table>
</div>

We got this blog from www.w3schools.com for blog more information Click Here

Display data in list format by using PHP and Angular Js

In this blog we have to learn about how to get data from database and show in PHP page in a list format by using Angular Js.

1st Step: – Create a database connection with DB (Mysql)

$servername = "localhost";
$username = "root";
$password = "";
$dbname = "WordPress";
//Create connection
$conn = new mysqli ($servername, $username, $password, $dbname);
// Check connection
If ($conn->connect_error)
{
    Die ("Connection failed: ". $conn->connect_error);
}

Read more