2017-06-14 28 views
0

我想設計一個使用ng2-tag-input的自定義下拉菜單。 This是我用作參考的鏈接。但是我無法爲TagInputDropdownComponent設置offset屬性。約如何使用ng2-tag-input組件的偏移屬性?

詳細的文檔偏移:

offset - [?string]
Offset to adjust the position of the dropdown with absolute values (defaults to '0 0')

這裏是我的HTML代碼:

<tag-input-dropdown [offset]="0 0" [autocompleteObservable]='autocompleteItems$' [identifyBy]="'email'" [displayBy]="'userName'"> 

但我結束了以下錯誤:

Unhandled Promise rejection: Template parse errors: Parser Error: Unexpected token '0' at column 3 in [0 0] in ng:///AppModule/[email protected]:57

任何幫助,將不勝感激。

+0

通過@Romain回答解決我的問題。 –

回答