Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 05:59
    vella-nicholas commented #43876
  • 04:58
    evgen-jkay starred angular/angular
  • 04:09
    scikingdom starred angular/angular
  • 03:01
    ver-1000000 commented #43875
  • 02:52
    pullapprove[bot] review_requested #43887
  • 02:52
    google-cla[bot] labeled #43887
  • 02:52
    HyperLife1119 opened #43887
  • 02:42
    JounQin commented #43886
  • 02:40
    anurag90-tech starred angular/angular
  • 02:33
    JounQin opened #43886
  • 02:28
    chiskien starred angular/angular
  • 02:15
    JounQin commented #43833
  • 02:14
    JounQin commented #43833
  • 00:53
    joshbarrosweb starred angular/angular
  • 00:15
    josephperrott unlabeled #43862
  • 00:15
    josephperrott unlabeled #43862
  • 00:14

    AndrewKushnir on 12.2.x

    ci: update payload size limit (… (compare)

  • 00:14
    AndrewKushnir closed #43885
  • 00:14
    AndrewKushnir commented #43885
Oleg Korsak
@kamikaze
me?
Brandon
@brandonroberts
@kamikaze yep
@kamikaze based on your source you’re missing the angular2-polyfills.js in your shims section
hm
will try to fix that
any doc on this?
Oleg Korsak
@kamikaze
hmmmm
actually my project is right from that repo... :) strange that my config misses that
thanks
@brandonroberts thanks a lot, it worked!
Brandon
@brandonroberts
@kamikaze :+1:
Oleg Korsak
@kamikaze
but another thing is that location doesn't change in address bar
when you click signup
but it changes when I manually navigate to the same route in code
why is that?
Chad Autry
@chad-autry
I have

I have

router.config([
                { path: '/home', component: homeComponent, name: 'Home', useAsDefault: true },

And that will re-route locally when I hit the html file, but not when hosted with github pages. Anyone have a clue why?

Oleg Korsak
@kamikaze
@brandonroberts any ideas?
Brandon
@brandonroberts
@kamikaze can’t really tell since its minified, but it seems like your route component is missing a dependency.
Oleg Korsak
@kamikaze
@brandonroberts yeah, you were right :) thanks a lot again
Brandon
@brandonroberts
:-)
Alexander Wieser
@crystalbyte
Good evening.
Whats the ideal way to access DOM properties such as window, document inside a component ?
Alexander Wieser
@crystalbyte
@qdouble Thanks for the hint, these two, however, only allow access to the DOM of the component itself, not to the root, such as window or document.
I know I can simply call the cssSelector, however this seems a bit fishy and indirect, just thought there might be a better way.
Anthony
@qdouble
@crystalbyte I think it's been said a few times on here that angular and other frameworks are purposely set up for there not to be direct dom access
Alexander Wieser
@crystalbyte
@qdouble How do you then for instance call setTimeout, which sometimes is necessary in order for angular to work properly ?
Eric Martinez
@ericmartinezr
like this
setTimeout(() => { ... }, time);
Alexander Wieser
@crystalbyte
@ericmartinezr I know this is possible, I just thought there is a more clean way to call window methods apart from the global scope.
Justin DuJardin
@justindujardin
@crystalbyte Use TimerWrapper perhaps?
import {TimerWrapper} from "angular2/src/facade/async”;
Eric Martinez
@ericmartinezr
I don't think calling a wrapper for something global is cleaner. You're wrapping B in A to use B, doesn't really make sense to me. Internal wrappers have another purpose in the internal API.
Alexander Wieser
@crystalbyte
@justindujardin Thanks, however this does only solve the problem for a single method, I was hoping for a more generic way to access the root objects.
Perhaps it's just me, I come from the C++/C# land far far away, where the global scope has been banished from the lands :P
Justin DuJardin
@justindujardin
Updated material components, with better test coverage and a revamped example site making use of the new peekaboo component. https://justindujardin.github.io/ng2-material/
Rob Wormald
@robwormald
don't use the wrappers :) they're internal
hgrubst
@hgrubst
Hello, I'm trying to programatically access all the route definitions of my top level Router. Something similar to what $state.get() does in ui-router. Is there anyway this can be done ?
Alexander Wieser
@crystalbyte
Is there a way to trigger an http observable, such as http.get to fetch the data multiple times or do I need to create a new one each time and replace the old ?
Rob Wormald
@robwormald
you can just resubscribe to it
though it depends what you're looking to do - polling? or?
Alexander Wieser
@crystalbyte
@robwormald Lets just say I need to refresh the data coming from a get request. I was hoping to be able to call this.items.refresh() so the entire sequence is simply run again.
Rob Wormald
@robwormald
there's a couple of ways you could do it
Rob Wormald
@robwormald
Alexander Wieser
@crystalbyte

@robwormald I'd love to hear them ;) Perhaps you could explain to me if its possible to bind directly against a single Observable. When using the ngFor directive I can simply use the async pipe

<section *ngFor="#p of profiles | async"></section>

How do I do that directly without using *ngFor.

Rob Wormald
@robwormald
the same way - though typically i would have a profile component and do something like <profile [data]="profile | async">
Alexander Wieser
@crystalbyte
Isn't it overkill to create an entire component merely for fetching some json data?
Rob Wormald
@robwormald
not for fetching
for displaying