Skip to content

Simon Green
CaptainCodeman

@CaptainCodeman

You can put *ngIf="theloadedthing" on the component maybe?

@CaptainCodeman

I don't think anything failed with my install - there were new typings files added but the webpack build then failed with a ton of ts errors (can't…

@CaptainCodeman

No, I'm on Mac. I didn't notice any 404 (you mean from npm?)

@CaptainCodeman

I'm no expert on typings but it seems like installing things but not saving them into the typings.json file is wrong - shouldn't we be able to blow…

@CaptainCodeman

@rodbzro I should have mentioned I'm using webpack - sounds like the same issue. Thanks @qdouble - that fixes things !

@CaptainCodeman
Can't resolve 'rxjs/observable/fromPromise' (beta5)
CaptainCodeman commented on issue labstack/echo#294
@CaptainCodeman

Thanks, I'll give that a try.

CaptainCodeman commented on issue labstack/echo#294
@CaptainCodeman

Would it be possible to get the underlying http.Request when running on the standard engine in order to use it with AppEngine? i.e. instead of Requ…

@CaptainCodeman

I found the advice to split things up between "smart" components (that interact with services, http etc...) and "dumb" components (for rendering & …

CaptainCodeman commented on issue labstack/echo#361
@CaptainCodeman

Just so I understand the issue - you're wanting to have the roles allowed defined on the handler? I'm assuming you check those against roles in a J…

@CaptainCodeman

The other syntax with the semicolon ... I never would have guessed that as I have not sen it before. Is that new? It's in the docs (https://angul…

@CaptainCodeman

I'm using it like this which seems to work (well, the customTrackBy function gets called at least): *ngFor="#photo of photos" *ngForTrackBy="custom…

@CaptainCodeman

I had the same issue, this was my fix: #6565 I don't think an HTTP 404 is really an Exception in typical use - it's possibly normal code flow and s…

@CaptainCodeman

There are a couple of other approaches that may give you what you are after but depend on how you build and package your app. If using webpack you …

@CaptainCodeman

You can combine CSS, SASS or LESS files as you normally do regardless of whether you keep the snippets alongside the components or elsewhere. Just …

@CaptainCodeman

This is probably the same issue but manifest in a different way. Maybe it will help ... Given a wildcard route such as: { path: '/folder/*id', comp…

@CaptainCodeman
@Input() / component directives strangeness
@CaptainCodeman

Same here. It also doesn't seem to be accessible in a 'dumb' (non-routed) component that isn't loaded by a routed parent.

@CaptainCodeman

I'm using something like this: exception-handler.ts import { Injectable, ExceptionHandler } from 'angular2/core'; @Injectable() export class Custom…

@CaptainCodeman

@pseisam I understand what you're saying but I still don't agree with your interpretation of how the child routing works which is what we're disagr…

@CaptainCodeman

It seems to me that useAsDefault is just an alternate to having a redirectTo route with an empty path. How does useAsDefault handle missing paramet…

@CaptainCodeman

I haven't fully thought it through yet but isn't useAsDefault kind of redundant? If the route segments are provided then the route will match anywa…

@CaptainCodeman

It is not allowed to link to a child route that also is a parent route. @pseisam I think that's incorrect - the last plunker I showed hopefully d…

@CaptainCodeman

@pseisam I see what the issue is (I think). The router doesn't know what it's meant to load as the only route has parameters and they are no suppli…

@CaptainCodeman

That's a handy tip, thanks @chenkie ! @pseisam The CrisisDetailRootComponent (the middle-man of the routes) can display other things as well as the <…

@CaptainCodeman

The easiest way I've found to access any parent value is to use a service. In my case I'm doing an Http request in the @CanActivate decorator and s…

@CaptainCodeman

Ah, removed the implements ExceptionHandler and it worked fine.

@CaptainCodeman
Cannot implement custom Exceptionhandler
Something went wrong with that request. Please try again.