Two methods of achieving Li or an element in Angular

This article introduces two ways to implement Li or an element in Angular, sharing it to everyone, I hope to help everyone

Let’s talk about a direct use of no need JS control.

Method 1: Directly can be controlled directly:

  Floating Year 

In STYLE is set as follows:

.active {color: red;}
   This will change which discoloration.   Method 2: STYLE, HETML is as follows: 

plot is beautiful

The JS code is as follows:

$ scope.isactive = function (i) {$ scope.i = i;}

If you want the first default, there is color, add it in JS As follows:

$ scope.i = 1;

 The above is all the contents of this article I hope to help everyone, I hope everyone will support Tumi Clouds.                      
© Copyright Notice
Just support it if you like
comment Grab the couch

Please log in to comment