angular

    1热度

    1回答

    我试图导入打字稿自述文件,但得到“错误模块未找到” 我的TS码 import * as readme from "./README.md"; // here i am getting error module not found 我也试过:分型.d.ts declare module "*.md" { const value: any; export default val

    0热度

    1回答

    <ion-list> <ion-list-header> <span ion-text bold color="primary"> My Application</span> </ion-list-header> <div *ngIf="userStatus!='Registered' " > <ion-item *ngFor="let type of options" (click)=

    0热度

    1回答

    我想从文件中加载一个虚拟json数据,但它好像是angular2 http.get方法不能挑选它。每次它给资源不可用与404状态。我正在使用下面的代码。 const obs: Observable<any> = this.http.get('http://localhost:4200/assets/mock-json/cashback.json') .map((res: Response

    2热度

    1回答

    我有关于Angular2引导模块的错误,我在diffreent页面中使用了相同的模块。 当我移动的模块到一个更高的水平,我已经得到了这个错误: ERROR Error: Uncaught (in promise): Error: Template parse errors: Can't bind to 'totalItems' since it isn't a known property of

    1热度

    2回答

    在Angular中使用NgModule中的类有什么用途?在@Component中,类可以包含组件的变量。 NgModule中的类包含哪些有用的信息? @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule ], providers: [],

    0热度

    1回答

    使用angular2与@ NGX-转换模块 我的代码,不基于用户选择的语言变化,并使用设置语言: this.translate.use('en'); 在其他组件中的其他地方,我使用.get observable来检索一些标签。 this.translate.get(element.bucketId.toUpperCase()).subscribe(x => { bucket.bucketLab

    0热度

    1回答

    我是Angular 2的新手,这是官方网站的代码。我理解所有的类,导入,列表,HTML标签。但我不明白选择(英雄)metod。 * ngFor直播列表ID和名称。如果我们选择列表,则会显示详细信息。该方法如何工作?它抓住了数据,但以什么方式对我不明确。 import { Component } from '@angular/core'; export class Hero { id:

    0热度

    1回答

    我正在将我们的项目迁移到4.1.3。摆脱所有编译器错误后,我留下了极其修改的行为。 为了说明这一点,我已经推我们的角度项目QA: QA〜https://backend-dot-qa-stareable.appspot.com/ 直播〜https://www.stareable.com/ 我谈论的修改行为发生在2个地方,我可以看到。 首先:在实况网站上,当您点击页面顶部的类别时,您将被重定向到没有重

    0热度

    1回答

    我是Angular 2的新手,我正在使用md-hint和mdDatepicker。 我可以通过md-select和'input'得到它。 HTML不起作用 <md-input-container> <input mdInput placeholder="Start date" name="startDatepicker" required ngModel #startDatepicker

    1热度

    1回答

    我有我的Angular 4网站运行良好,但它运行在〜/ app /文件夹中。所以它出现在http://example.com/app,但我只是希望它在http://example.com 显示现在我有: 的package.json ng build --base-href /app/ .angular-CLI。 json "outDir": "./../app" 伟大的工程,但如果我更改这