Tampilkan postingan dengan label ng-class if example. Tampilkan semua postingan
Tampilkan postingan dengan label ng-class if example. Tampilkan semua postingan

Kamis, 15 Oktober 2015

Angularjs table format example

 Angularjs table format example

Requirement:
Have a list customers, show customer information (name, age, gender, phone) as a table.
To make discern base on gender: if gender = 'girl' then textcolor will be green
To make discern base on age: if age <20 background of age cell will be blue (is teen)

                                                if age >60 background of age cell will be gray(is old)

As same as following image

Here is full code, please focus at highlight chars.

Read more »
Baca selengkapnya

Senin, 21 September 2015