How to combine angularjs and xhtml?

后端 未结 2 1126
遇见更好的自我
遇见更好的自我 2021-02-06 08:50

Here is an example of a minimal example for angularjs which works when saved as angular.html:



        
2条回答
  •  半阙折子戏
    2021-02-06 09:25

    One of the best ways to do this is to use the HTML/XHTML data- attributes. You can write valid HTML and XHTML without having to include any angular namespace. This would be as follows:

    
    
    
      My HTML File
      
    
                                     
                  
提交回复
热议问题