意外的令牌导出 - Angular 2

时间:2016-12-02 21:56:18

标签: angular ng-upgrade angular-upgrade

我正在尝试导入 从'@ angular / upgrade / static'导入{UpgradeComponent}; 使用ngupgrade在angular2中使用angular1指令,但我收到此错误。

代码:

@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
//...//
if(isOneTextLine) {
        canvas.drawText(mText.toString(), mCentrX, mCentrY, textWordPaint);
    }else {
        canvas.drawText(mText.toString(), mCentrX, mCentrY, textWordPaint);
        canvas.drawText(mText_second.toString(), mCentrX, mCentrYForSecontLine, textWordPaint);
    }}

0 个答案:

没有答案