Mark
Member since Jan 19, 2018
- Profile: /members/13690-mark.htm
- Comments: 7
Recent Blog Comments By Mark
-
Creating A Jump-To-Anchor Fragment Polyfill In Angular 5.2.0
Posted on Jan 19, 2018 at 10:24 AM
@Ben, right, regarding the 404, I just match-all ** and redirect to index.html. Works nice on S3/Cloudfront, haven't tried on github yet.. this way, for development, you at least won't get an annoying 404..... read more »
-
Creating A Jump-To-Anchor Fragment Polyfill In Angular 5.2.0
Posted on Jan 19, 2018 at 10:21 AM
@Ben, honestly, Ionic was probably the biggest waste of time in my entire life. I started with it about 2 years ago. Went through the beta phase of ionic 2, terrible, terrible documentation, buggy code etc. It has gotten better over time, but honestly, I don't see any purpose in keeping it. It is b... read more »
-
Creating A Jump-To-Anchor Fragment Polyfill In Angular 5.2.0
Posted on Jan 19, 2018 at 2:41 AM
P.S. For those who do not wish to use the "#" Path Strategy (which I guess is most, because it IS ugly and confuses users), just set useHash: false it will still work. Ben, again, please correct if wrong :) Sorry for the spam, just working through it... read more »
-
Creating A Jump-To-Anchor Fragment Polyfill In Angular 5.2.0
Posted on Jan 19, 2018 at 2:18 AM
Step 4) If you get the error below during build, just add an "export" in front of the NativeWindowScroller class in the polyfill. Ben, please correct me if I'm wrong. ERROR in Error during template compile of 'AppModule' References to a non-exported class are not supported in decorators... read more »
-
Creating A Jump-To-Anchor Fragment Polyfill In Angular 5.2.0
Posted on Jan 19, 2018 at 2:03 AM
Just one more comment (it's so tempting to comment and think in Schwarzenegger's voice.."to the CHOPPER!!! everybody get to the choopppperrrrr") Just an observation: Anchors are old-school. They have been around for decades and are super useful, even in SPAs with long pages (everyone scro... read more »
-
Creating A Jump-To-Anchor Fragment Polyfill In Angular 5.2.0
Posted on Jan 19, 2018 at 1:54 AM
OK, I've implemented it. Was actually really easy - just had to ignore all the text :P ;) Here's a helper for the TL;DR generation: Step 1) Import the polyfill as is. Fix the type error by removing number decelerator Step 2) Change existing "#" href links to <a routerLink="/you... read more »
-
Creating A Jump-To-Anchor Fragment Polyfill In Angular 5.2.0
Posted on Jan 19, 2018 at 1:13 AM
Great idea, but could use a rewrite. Takes ages to follow and implement. It's about anchor links and shouldn't take an hour to do :) Please revise, it's really a good piece otherwise... read more »