2017-09-26 92 views
2

如果你去下面的頁面上:angular.io沒有反應在Firefox和IE瀏覽器邊緣工作怪異

http://beta.melard.fr

你,我們被要求創建一個用戶(但它的本地存儲模擬)。之後

,你會發現一切正常,就像鍍鉻魅力,但在Firefox中,只有colorwheel響應,並在IE瀏覽器,按鈕響應,但是當你將鼠標懸停一些MD-按鈕的頁面重載本身:/

我不知道我失蹤的人很多開發與應用的角度對任何瀏覽器...

對於勇敢,這裏是GitHub庫: https://github.com/mylen/canimap

填充工具:

import 'core-js/es6/reflect'; 
import 'core-js/es7/reflect'; 
import 'zone.js/dist/zone'; // Included with Angular CLI. 

其他所有內容都有評論。

@angular/cli: 1.4.3 
node: 6.11.2 
os: win32 x64 
@angular/animations: 4.4.3 
@angular/cdk: 2.0.0-beta.10 
@angular/common: 4.4.3 
@angular/compiler: 4.4.3 
@angular/core: 4.4.3 
@angular/forms: 4.4.3 
@angular/http: 4.4.3 
@angular/material: 2.0.0-beta.10 
@angular/platform-browser: 4.4.3 
@angular/platform-browser-dynamic: 4.4.3 
@angular/router: 4.4.3 
@angular/cli: 1.4.3 
@angular/compiler-cli: 4.4.3 
@angular/language-service: 4.3.6 
typescript: 2.3.4 
+0

檢查您的瀏覽器版本 –

+0

您使用的是什麼polyfills?你在使用Angular-CLI嗎? –

+0

我使用ng來引導我的應用程序,使其對於polyfill角度cli,請看:http://beta.melard.fr/polyfills.bundle.js –

回答

0

該解決方案與往常一樣相當簡單。

我用MD-圖標:

<button md-icon-button aria-label="Parking" mdTooltipPosition="below" mdTooltip="Parking" i18n="Parking|Put a parking slot"> 
    <md-icon class="md-24" (click)="draw('ParkingMarker')" color="color('ParkingMarker')"> 
     local_parking 
    </md-icon> 
    </button> 

,而不是

<button md-icon-button aria-label="Parking" mdTooltipPosition="below" mdTooltip="Parking" i18n="Parking|Put a parking slot" 
    (click)="draw('ParkingMarker')"> 
    <md-icon class="md-24" color="color('ParkingMarker')"> 
     local_parking 
    </md-icon> 
    </button> 

你必須carreful把單擊處理程序上按鈕,而不是圖標

相關問題