當replace為true時,template和templateUrl里面的內容都是一個大標簽包圍,例如:
<div> <div>...</div> <div>...</div> ... </div>
如果是這樣:
<div>...</div> <div>...</div> <div>...</div>
就不支持了,其實也能理解,畢竟一個標簽替代一個標簽,不能用多個標簽替代一個標簽。
當replace為true時,template和templateUrl里面的內容都是一個大標簽包圍,例如:
<div> <div>...</div> <div>...</div> ... </div>
如果是這樣:
<div>...</div> <div>...</div> <div>...</div>
就不支持了,其實也能理解,畢竟一個標簽替代一個標簽,不能用多個標簽替代一個標簽。
2014-08-19
舉報