我試圖添加拖放到我的離子2應用程序。但不能讓它工作。Angular2/Ionic2 + ng2-dragula有沒有人得到它的工作?
這是我迄今所做的:
npm install ng2-dragula dragula --save
在我的網頁
則:
@Component({
templateUrl: 'build/pages/dragtest/dragtest.html',
directives: [Dragula],
viewProviders: [DragulaService],
})
export class DragtestPage {
constructor(private nav: NavController) {
}
}
但是當我添加[dragula]標籤,我得到錯誤: 不能綁定'dragula',因爲它不是一個知道的本地財產。
有沒有人得到這個與離子2工作,有沒有任何例子?
你有沒有找到一個解決辦法? 我面臨同樣的問題... – hsantos