Using $implict to pass multiple parameters

前端 未结 2 397
轮回少年
轮回少年 2020-12-28 20:21

I have a template to be recursive, something similar to below:


<         


        
2条回答
  •  遥遥无期
    2020-12-28 20:42

    You don't need to use $implicit

    You can use

    1:

    context: {$implicit:jsonObj1, b:jsonObj2}
    

    with

    
      
    {{json1}}
    {{json2}}

or 2:

context: {$implicit: {a: jsonObj1, b:jsonObj2}}

with


  
{{json1.a}}
{{json1.b}}

or 3:

context: {a:jsonObj1, b:jsonObj2}

with


  
{{json1}}
{{json2}}

0 讨论(0)
提交回复
热议问题