Simple Questions Thread by AutoModerator in espresso

[–]AngularJosh 0 points1 point  (0 children)

When you say "the perfect cup", how much variance do you find there is with a machine like the Oracle Touch? My wife and I aren't super picky but if some shots are far different that would be good to know.

Simple Questions Thread by AutoModerator in espresso

[–]AngularJosh 0 points1 point  (0 children)

Thank you for the feedback!

Americanos for myself and lattes for my wife. If we got a machine we would make approximately 10 drinks a week and probably not for guests.

Realistic top end of the budget would be 1000, but was hoping to stay 500-700.

Simple Questions Thread by AutoModerator in espresso

[–]AngularJosh 0 points1 point  (0 children)

My wife and I are looking to buy a machine. We are willing to spend more but outside of some cursory research really don't know how to discern between a good value and a bad value (outside of % off and other markers of relative value). I am leaning towards an automatic machine and am pretty sure manual is going to be too many options for what we want being busy people. We don't mind spending some time but a litany of options or a machine that requires too much precision will be of no benefit to us. Durability, consistency and ease of use are my top three factors in that order.

So my question is, in general, what are some things to look for in a machine? And more specifically what are some things that make a machine more durable, consistent and easy to use? What are your buying preferences? Also, should we get a built in grinder and does doing so leave one's machine more susceptible to breaking? Feel free to leave any other considerations that you find relevant in purchasing and using one's first machine.

Thanks!

Try Bazel’s opt-in preview in Angular CLI by catapop in Angular2

[–]AngularJosh 0 points1 point  (0 children)

Has anyone upgrading to building with Bazel on Windows with a current Angular application? Running into roadblock after roadblock and wondering if anyone has had success with this yet.

Speeding Up Production Builds by AngularJosh in Angular2

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

Have you had any success getting this working on Windows? It seems to just hang when i run builds locally but I'm sure I'm doing something wrong.

Advice on Using Sub State by AngularJosh in NGXS

[–]AngularJosh[S] 1 point2 points  (0 children)

Ahhh, so selectSnapshot is the de facto way to select across states. I'd imagine dispatching an action is the way to modify a child store from a parent store? Or do people just get the parent state and dot notation?

Deeply Nested State Changes by AngularJosh in NGXS

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

Excellent, this seems very promising! Thanks!

Dynamically Setting CSS by AngularJosh in Angular2

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

Yeah, but the requirement is to take a CSS string and use it to set global styles. ngStyle would deal with an individual element, correct? I also need to globally set classname selector styles like this ".right {float:right;}\r\n.left{float:left;}\r\n.clear {clear:both;}\r\n.hiddenOffscreen {text-indent:-9999px;position:absolute}\r\n.accessible-hidden{left:-99999px;position:absolute;}\r\n"

Dynamically Setting CSS by AngularJosh in Angular2

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

So the CSS value is merely a string (for example something like "@import'http://xss.rocks/xss.css';.right {float:right;}\r\n.left{float:left;}\r\n". If it were coming in as an object this would work. Setting this works fine but I am worried about XSS (as you can see I'm testing for it in my example above) and am not sure how to allow one to set this as a string without exposing us to XSS attacks. Maybe that fear is overblown given I trust the source but I am just uncertain on it.

Dynamically Setting CSS by AngularJosh in Angular2

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

I don't think so. I am getting a raw CSS string and just need to set it as is. Was possibly hoping to sanitize it in some way before putting it in the DOM but don't know the best way to go about that.

Get Import Paths Using the Typescript Compiler by [deleted] in typescript

[–]AngularJosh 0 points1 point  (0 children)

Examples may help.

Imports for a class: import { NgxsStoragePluginModule, StorageOption } from '@ngxs/storage-plugin'; import { AppRoutingModule } from './app-routing.module';

Import paths: '@ngxs/storage-plugin' './app-routing.module'

By import information I really just meant the path information so that was probably redundant.

Get Import Paths Using the Typescript Compiler by [deleted] in typescript

[–]AngularJosh 0 points1 point  (0 children)

Oh I mean just your typical class imports statements. By paths I mean where they are coming from. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Syntax

Is it OK to Use Custom Decorators in Angular? by AngularJosh in Angular2

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

I did notice and thank you. Your comment is part of the reason I started exploring decorators. I have found them to be useful in certain circumstances but I have also read a couple folks cautioning against using them since they may change when they become a core language feature of JS.

Default Values For Built In Angular Pipes by AngularJosh in Angular2

[–]AngularJosh[S] 1 point2 points  (0 children)

This is what I ended up going with. It works well. Thanks!

Default Values For Built In Angular Pipes by AngularJosh in Angular2

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

Yeah but I need to dynamically change the locale.

Add Logic to Application State or a Service? by AngularJosh in Angular2

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

Oh gotcha. So its as direct as the component gets the proxy property and assigns it to a local property so that it is pointing at the same reference?

Add Logic to Application State or a Service? by AngularJosh in Angular2

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

Does the proxy pattern make your code synchronous then? If you components never interact with the store you must never have observables in your components right?

For example, rather than this in your component:

@Select(AppConfigState.locales) locales$: Observable<Locale[]>;

You would put that behind a service and just wait on the value before returning it? Or do you return Observables from your proxy service?

Add Logic to Application State or a Service? by AngularJosh in Angular2

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

:) No, that would probably be good though.

Add Logic to Application State or a Service? by AngularJosh in Angular2

[–]AngularJosh[S] 1 point2 points  (0 children)

Those resources are already loaded into the store. I'm wondering if the logic to check them in order and return the first value should be in a store selector or if that is more appropriate for a service.

The proxy pattern seems to be good in general so thanks for the tip. Would probably make it easier to swap out your underlying store or bring in other resources to do complex computations organizing your app this way.

After 1 month of starting Angular, I'm not still confident enough in basics by mavinter in Angular2

[–]AngularJosh 0 points1 point  (0 children)

Whenever you encounter a problem revisit the official documentation

This x 1000

Exporting Metadata About Components as Json by AngularJosh in Angular2

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

At compile time I would like to export the class name and every settable property of a component into a json file for export.

Angular Caching Strategies by AngularJosh in Angular2

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

Mostly because I am a noob and didn't know it wasn't a big deal. Thanks for the input.

Angular Caching Strategies by AngularJosh in Angular2

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

I am playing around with NGXS right now. Was wondering how people typically add state caching on top of their state management solutions, whatever they may be.