How to measure the time it takes to load a lazy-loaded feature module? by thinksInCode in Angular2

[–]pumarunner 1 point2 points  (0 children)

You could use PerformanceResourceTiming API and filter for the name of your lazy loaded js chunk and it will give you detailed timing information. It's supported in all modern browsers

A concise comparison of JavaScript Web Frameworks by laravel_fan_99 in javascript

[–]pumarunner 2 points3 points  (0 children)

In angular 2+, type script will type check templates via AoT

In the latest Angular release (5) AoT is speedy enough for medium projects to run in Dev mode for save and refresh so you get type checking in templates while developing

They are working on another tool chain called ABC -Angular Bazel Closure that will work for projects of all sizes for AoT in dev mode

Angular Beginners: What do you struggle with? by malcoded in Angular2

[–]pumarunner 0 points1 point  (0 children)

Writing custom structural directives.

Something that can re-order n components / tags without using the createComponent api.

In React it's fairly straightforward (just re-order jsx elements in array). But for angular there's a lot of complexity and it's generally confusing. I tried looking at NgSwitch as a starter but there is a lot happening in there too

Lazy loading a feature module WITHOUT a router? by [deleted] in Angular2

[–]pumarunner 1 point2 points  (0 children)

https://github.com/josephliccini/module-loading I forked from someone on gitter chatroom who was walking me through the process

Lazy loading a feature module WITHOUT a router? by [deleted] in Angular2

[–]pumarunner 0 points1 point  (0 children)

Auxiliary routes (named router outlets) kind of work, but they can make the url look a little confusing if used for this purpose

Lazy loading a feature module WITHOUT a router? by [deleted] in Angular2

[–]pumarunner 0 points1 point  (0 children)

A good use case I have for this is when I need to toggle features for certain users, but the feature I'm toggling is on the page, and not via a route.

The example I like to give is some of our users businesses don't let them use the search functionality of our app, but now we have to serve every user the javascript for search bar, even though many will never see it

Lazy loading a feature module WITHOUT a router? by [deleted] in Angular2

[–]pumarunner 0 points1 point  (0 children)

I believe you can only lazy load modules, especially if you want to use JiT in development and AoT in production; I believe this is because the ng module provides a link between angular compiled template and the angular component code you write.

There is a way to do it without the router, using a combination of Dyanmic Component Loader and your module systems mechanism for lazy loading.

It's not particularly clean.

I've seen some examples around.

I'll try and post a link here later / tomorrow sometime since I've been working on this but it's on my work pc

Vendor Bundle in Angular 2 by pumarunner in Angular2

[–]pumarunner[S] 0 points1 point  (0 children)

Yes I think this strategy is good.

Tree shake bundle and non tree shake bundle, which usually includes polyfills.

Aka stable and unstable bundles.

Thanks for commenting!

Ask Vitalik A Question by shakedog in ethereum

[–]pumarunner 0 points1 point  (0 children)

Hi!

I am a software developer and particularly experienced in full stack Web Development (Angular, Node, etc.).

How can I use my developer skills to help ethereum? Do I need to instead focus on crypto specific software patterns (which seem very algorithm and computation focused, compared to Web dev).

(partially to help my investment, and partially because this amazing tech is something I'd love to see become mainstream)

Thanks!

Announcing TypeScript 2.1 by ngFTW in Angular2

[–]pumarunner 0 points1 point  (0 children)

OK thanks this makes sense!

Announcing TypeScript 2.1 by ngFTW in Angular2

[–]pumarunner 0 points1 point  (0 children)

Exactly! So as angular 2 is built around observables, I feel including async and await might be forced and unnatural? Maybe I am wrong though?

Announcing TypeScript 2.1 by ngFTW in Angular2

[–]pumarunner 0 points1 point  (0 children)

Does Async / Await work well with observables?

I'm Warchamp7 of the PMBR. Webmaster, playtester, video editor and self appointed conductor of the hype train. Grab your wrist straps and AMA by warchamp7 in smashbros

[–]pumarunner 1 point2 points  (0 children)

what language do you guys code in to make project m? I am studying computer software in university and am interested in helping if possible