-
Notifications
You must be signed in to change notification settings - Fork 518
Angular2's (click) events doesn't work on IE 9 #172
Comments
This should be addressed to angular2 team. I think there is only IE 10 support from box. Everything else require polyphils or god helps. For IE 9 i assume that only god could help you. |
Thing is, with a freshly created angular 2 project running on node, I don't have this problem... But yeah, for IE 9 i'll also assume god is the only help :P... |
What does console say? Are you add polyphill? Can you provide more details about what difference between those 2 projects? Webpack config etc. |
Angular2 should work on IE9 (but I believe the latest RC broke some IE9 support) Do you have es6-shim or better yet, core-js shim? |
@MarkPieszak I tried with both, no success. The NOT working project is using:
TSD: (also tried code-js here)
package.json (I also tried with rc4 versions for each of the angular dependencies)
The working project uses:systemjs:
typings:
package.json:
I am unable to pinpoint what is at fault here :/ |
The working project has rc.4 & core-js in its package.json Typescript2 just went into For now? Just install core-js through |
Thanks for your help @MarkPieszak, I tried your recommendation but it still not working on IE9:
tsd.json:
Am I missing something, should I change something in the webpack's configuration file too? |
The working one also has bootstrap, maybe that one for some reason has the IE9 fix you're missing? I'm surprised it isn't working already. Then again rc4 says IE9 tests have failed, so maybe you're hitting some of these. |
I found something interesting
if i replace them with a simple For information I created the project following @SteveSanderson's blog post: http://blog.stevensanderson.com/2016/05/02/angular2-react-knockout-apps-on-aspnet-core/ |
prerender module is what's using Universal to create the Angular page on the server side and send the entire rendered thing to the client. Webpack of course just links to where the webpack file is located. It wouldn't load without those. |
They should be loaded prior to everything else if possible (usually at the top of vendor) |
Hey @Gimly, I had to import
|
Awesome, it's working, thanks. Shouldn't that be added to the base project? |
I think you're right, I'll make a pull request for this. |
The PR was merged. Thanks! |
@tinchou Spot on! |
The
(click)
event doesn't seem to work with a project generated with 'Aspnetcore Spa' generator.=> can be tested on the "Counter" page
Though creating a "normal" node project (following the instructions from the Angular2's quick start) doesn't cause this problem.
Tested on IE 9 on Windows 7
The text was updated successfully, but these errors were encountered: