小编Phi*_*ecz的帖子

由angular-cli 1.0.0构建的Angular 4.0.0应用程序无法在IE11中运行

我尝试在Internet Explorer 11中运行由angular-cli 1.0.0构建的我的处女Angular 4应用程序,但是我没有成功,我收到以下错误:

Error: The "apply" property of an undefined or null reference can not be retrieved.
Run Code Online (Sandbox Code Playgroud)

我没有安装额外的库,它只是一个新生成的项目.在谷歌浏览器中它完美运行.我的package.json:

{
"name": "angi4testie",
"version": "0.0.0",
"license": "MIT",
"scripts": {
  "ng": "ng",
  "start": "ng serve",
  "build": "ng build",
  "test": "ng test",
  "lint": "ng lint",
  "e2e": "ng e2e"
},
"private": true,
"dependencies": {
  "@angular/common": "^4.0.0",
  "@angular/compiler": "^4.0.0",
  "@angular/core": "^4.0.0",
  "@angular/forms": "^4.0.0",
  "@angular/http": "^4.0.0",
  "@angular/platform-browser": "^4.0.0",
  "@angular/platform-browser-dynamic": "^4.0.0",
  "@angular/router": "^4.0.0",
  "core-js": "^2.4.1",
  "rxjs": "^5.1.0",
  "zone.js": "^0.8.4"
},
"devDependencies": {
  "@angular/cli": "1.0.0",
  "@angular/compiler-cli": "^4.0.0", …
Run Code Online (Sandbox Code Playgroud)

internet-explorer-11 angular-cli angular4 angular

25
推荐指数
2
解决办法
2万
查看次数

Angular - 选择选项元素上的单击事件

在我的 Angular 4 应用程序中,我使用了一个 select 元素。单击选择元素中的一个选项,我想打开一个对话框。但是,我找不到如何查询该选项是否被点击的解决方案。我在选择中只有一个选项,因此我无法查询该值是否更改,因为该值无法更改。

是否有可能在选项元素中有点击事件?

html typescript angular

6
推荐指数
2
解决办法
2万
查看次数

以编程方式在iOS8,Xcode 7,Swift 2中打开Apple Maps

我想在我自己的Swift ios8应用程序中打开Apple Maps应用程序,但我只有邮政编码,城市和街道.我没有坐标.我研究了很多,但只有使用协调信息的方法.

iphone xcode ios apple-maps swift

5
推荐指数
3
解决办法
1万
查看次数

如何更改 iOS 应用程序的 Xamarin 表单中的全局色调颜色?

如何在 Xamarin 表单项目 (C#) 中更改 iOS 应用程序的全局色调颜色?

c# ios xamarin xamarin.forms

5
推荐指数
1
解决办法
2514
查看次数

如何在angular-cli项目中使用全局scss文件

我是Angular 4和Angular-CLI的新手.我找不到任何解决方案如何为整个应用程序使用root scss/css文件.因此,我的问题是,如何在项目中使用全局scss文件?

sass angular-cli angular

5
推荐指数
2
解决办法
6056
查看次数

ng-bootstrap ngbDropdown 在 angular 4 中不起作用

在我的 angular 4 应用程序中,来自 ng-bootstrap 的 ngbDropdown-Element 不起作用。

我已经为这种情况安装了以下 npm 模块:

"@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.22", "bootstrap": "4.0.0-alpha.6", "bootstrap-sass": "^3.3.7",

我的 app.module.ts 看起来像这样:

import { BrowserModule } from "@angular/platform-browser"
import { NgModule } from "@angular/core";
import { FormsModule } from "@angular/forms";
import { HttpModule } from "@angular/http";

import { AppComponent } from "./app.component";
import { FileitHeaderComponent } from "./fileit-header/fileit-header.component";
import {TranslateModule} from "ng2-translate";
import { CCACampaignComponent } from "./cca-campaign/cca-campaign.component";
import {NgbModule} from "@ng-bootstrap/ng-bootstrap";


@NgModule({
  declarations: [
    AppComponent,
    FileitHeaderComponent,
    CCACampaignComponent
  ],
  imports: [
    BrowserModule, …
Run Code Online (Sandbox Code Playgroud)

twitter-bootstrap angularjs angular-ui-bootstrap ng-bootstrap angular4

5
推荐指数
2
解决办法
1万
查看次数

在iOS 9中手动调节互联网速度

是否有机会手动使用应用程序来限制iOS 9中的移动数据速度?我想尝试一下......

iphone ios ios9

3
推荐指数
1
解决办法
4005
查看次数

UITableView自定义单元格的行高不会更新,Swift iOS8

我在iOS 8的Xcode 6.4中的故事板中创建了一个UITableView自定义单元.当我在Size Inspector中更改行高时,在这里输入图像说明,在应用程序中我的UITableView的自定义单元格没有任何变化.

uitableview custom-cell swift ios8 xcode6.4

2
推荐指数
1
解决办法
2508
查看次数

尝试并抓住展开线?Swift 2.0,XCode 7

我的代码中有以下展开行:

UIApplication.sharedApplication().openURL((NSURL(string: url)!))

有时会出现这个致命的错误:

致命错误:在展开Optional值时意外发现nil

我知道为什么有时会出现这个错误,但有没有办法在这条线上做一个try-catch语句

xcode swift ios8 xcode7 swift2

2
推荐指数
1
解决办法
1417
查看次数

我可以在Linux上运行我的Mercurail存储库吗?在Linux上运行ubuntu?

我在Windows上有一个Mercurial存储库,我想在Linux上的同一个存储库中继续我的工作ubuntu有没有办法做到这一点?

mercurial repository

0
推荐指数
1
解决办法
19
查看次数