错误消息:Type "before" is not assignable to type 'OutletPosition':
TypeScript 是强类型语言:
cxOutletPos 的类型为枚举类型 OutletPosition,而不是 string:
解决办法:
you import enum OutletPosition and save it to some property (eg. outletPosition) in your component and use
[cxOutletPos]="outletPosition.BEFORE"
更多Jerry的原创文章,尽在:"汪子熙":
网友评论