📜  AngularJS |桌子

📅  最后修改于: 2021-05-13 19:01:07             🧑  作者: Mango

表中的数据基本上是可重复的,因此您可以使用ng-repeat指令轻松创建表
该示例将清除该方法。

句法:

Content..

表中显示的数据。




    AngularJS ng-repeat Directive    


    
        

GeekforGeeks

                                                                                                              
CourseDuration
{{ Course.name }}{{ Duration.time }}
    
                    

输出:

以CSS样式显示


AnhularJS ng-repeat指令上面的代码示例:在这里,您将看到上面的html和css与AngularJS ng-repeat指令的组合。



   
      Angular JS Table
      
      
   
     
   
       
      

GeeksforGeeks

      
                                                                                                                                                                                                                                                                                         
Enter first name:
Enter last name:                                   
Name: {{student.fullName()}}
Subject:                                                                  .                                                                                                                                                                
NameMarks
{{ subject.name }}{{ subject.marks }}
               
      
                   
       

输出: