0
Error: Argument of type '{ selector: string; templateUrl: string; direvtives: typeof TabsPage[]; }'如何使用Angular2將數據傳遞給組件
不可分配給類型爲Component
的參數。對象字面量只能指定已知屬性,而類型Component
中不存在「指令」。 我正在使用Angular RC.3 請幫幫我。
Error: Argument of type '{ selector: string; templateUrl: string; direvtives: typeof TabsPage[]; }'如何使用Angular2將數據傳遞給組件
不可分配給類型爲Component
的參數。對象字面量只能指定已知屬性,而類型Component
中不存在「指令」。 我正在使用Angular RC.3 請幫幫我。
你有一個錯字,direvtives
,而不是directives
(切換 'C' 爲 'V')
它應該是 '指令'。這是代碼中的錯誤還是錯誤? –
您使用的是RC版本,它太舊了。更新你的應用程序(包)。很多事情都改變了。 –