简体   繁体   English

在 TypeScript 中导入 Angular Resizer

[英]Import Angular Resizer in TypeScript

I am trying to integrate the following angular directive into my AngularJS project (TypeScript + HTML components + Angular 9.1.12 ). I am trying to integrate the following angular directive into my AngularJS project (TypeScript + HTML components + Angular 9.1.12 ). However, I am unable to import the module into my app.但是,我无法将模块导入我的应用程序。 I am trying import { angularResizable } from 'angular-resizable';我正在尝试import { angularResizable } from 'angular-resizable'; in my app.module.ts file, but I am unable to use the resizable directive in my component.html .在我的app.module.ts文件中,但我无法在我的component.html中使用resizable的指令。 Any suggestions on how integrate this repository would be appreciated.任何有关如何集成此存储库的建议将不胜感激。

If you're using Angular 9, you aren't using AngularJS.如果您使用的是 Angular 9,那么您没有使用 AngularJS。

This package might be something you're interested in, as it's for Angular 4+ https://www.npmjs.com/package/angular-resize-element这个 package 可能是您感兴趣的东西,因为它适用于 Angular 4+ https://www.npmjs.com/package/angular-re

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM