【问题标题】:Visual Code IntelliSense between Angular template and componentAngular 模板和组件之间的 Visual Code IntelliSense
【发布时间】:2018-02-28 07:47:42
【问题描述】:

我最近切换到 Visual Code 并尝试解决微小但重要的问题。 假设你有模板

  <div class="educationYears">
        <ng-select class="select ngFilter"
                   [options]="eduYearOptions$ | async"
                   (selected) = "onSelectedYear($event)"
                   placeholder= "2017-2018"
                   notFoundMsg=""
        ></ng-select>
      </div>

在组件中

 eduYearOptions$: Observable<IOption[]>;

问题是在模板 Visual Code 中键入 eduYearOptions$ 时不会自动完成它(不提供建议)。安装了 Angular 语言服务并没有帮助。您能否建议插件或解决方法? 亲切的问候

【问题讨论】:

    标签: angular visual-studio-code intellisense angular5


    【解决方案1】:

    试试 angular2-inline 用于内联 html 模板的代码补全、突出显示和悬停信息的出色插件

    【讨论】:

    • 我正在使用它。但它不是为了那个目的。
    猜你喜欢
    • 2018-03-22
    • 2016-10-31
    • 1970-01-01
    • 2019-11-05
    • 1970-01-01
    • 1970-01-01
    • 2022-01-07
    • 1970-01-01
    • 2017-10-16
    相关资源
    最近更新 更多