How to CSS style AngularJS directive?

前端 未结 4 1996
醉话见心
醉话见心 2021-01-31 10:26

Assuming I have a directive \"mydirect\" with a template that contains a lot of divs with a lot of nested classes. For example:

4条回答
  •  悲&欢浪女
    2021-01-31 11:06

    As per google under and Angular directive creation logic In below example’s description object, setting two config components. First, we’re setting the restrict config option. The restrict option is used to specify how a directive can be invoked on the page.

    As we saw before, there are four different ways to invoke a directive, so there are four valid options for restrict:

    'A' -  
    'E' -  
    'C' -  
    'M' - 
    

提交回复
热议问题