Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 03:26
    tepmusi starred angular/angular
  • 02:50
    JERRY-Z-J-R starred angular/angular
  • 02:26
    AndrewKushnir ready_for_review #46015
  • 02:26
    AndrewKushnir review_requested #46015
  • 02:26
    AndrewKushnir review_requested #46015
  • 02:16
    ngbot[bot] milestoned #46015
  • 02:16
    ngbot[bot] milestoned #46015
  • 02:16
    AndrewKushnir labeled #46015
  • 02:16
    AndrewKushnir labeled #46015
  • 02:16
    AndrewKushnir labeled #46015
  • 02:16
    AndrewKushnir opened #46015
  • 02:10

    AndrewKushnir on image-directive

    test(common): fix relative URL … (compare)

  • 02:10
    AndrewKushnir closed #46014
  • 02:10
    AndrewKushnir commented #46014
  • 01:45
    hemengke1997 starred angular/angular
  • 01:02
    dgp1130 review_request_removed #45995
  • 01:02
    dgp1130 converted_to_draft #45995
  • 01:01
    dgp1130 commented #45995
  • 01:00
    dgp1130 synchronize #45995
  • 00:50
    amakhrov commented #43727
Rob Wormald
@robwormald
that's a long story
Sekib Omazic
@SekibOmazic
Lesson learned: flatten your damn data structure.
Sekib Omazic
@SekibOmazic
@fxck Know that. Not using it (yet) ;-)
Aleš
@fxck
unless you have to work with some existing and unmodifiable apis, it'd be better to send the data already flat from the backend anyway..
Sekib Omazic
@SekibOmazic
Drawback of flatten backend - I need more backend calls. If I had Company->Departments -> Emplyees I'd need 3 API calls to build the tree
Rob Wormald
@robwormald
heh, i was just messing with a plunk dealing with this
not necessarily, if your backend is smart it can do sideloading
Aleš
@fxck
that's why I kind like what falcor is doing
Sekib Omazic
@SekibOmazic
@robwormald I'm all ears (eyes actually) Let me subscribe to your plunk ;-P
Aleš
@fxck
also redux + falcor seems to be(or will be.. should be.. whatever) working together
rackt/redux#560
Rob Wormald
@robwormald
i'd totally use normalizr but lodash deps ftl
Aleš
@fxck
yea
KenavR
@KenavR
Hi, when using inline (@component) styling is there a selector for the component? The tag name doesn't seem to work.
oh ok :host works
Rob Wormald
@robwormald
Sekib Omazic
@SekibOmazic
@robwormald Great. Thanks a lot.
Andy
@Kylia669
No provider for IterableDiffers! (NgFor -> IterableDiffers)
hey getting this issue when trying to *ngFor="#item of items"
items - simple array of objects
what is wrong?
Rob Wormald
@robwormald
is it actually an array of objects?
Abhilash
@abhibly
Hie...I'm trying create auxiliary routes in deep linked routes...but im am not getting it...I tried according to this video https://www.youtube.com/watch?v=z1NB-HG0ZH4 and didnt succeed...I have created a plunker demo...how to rectify the mistake? http://plnkr.co/edit/MVWG76rh7PDvzc3oMYgB?p=preview
Aleš
@fxck
what's that @robwormald ?
Sekib Omazic
@SekibOmazic
@fxck Answer to my questions (Observables, async pipe, template with async data,...) I'd say :-)
Aleš
@fxck
that object.assign syntax is hideous btw
Eric Martinez
@ericmartinezr
If I have a service which holds a http request to something, and I want to share its result across differents components without redoing the request, is ReplaySubject the best option? That's what I'm doing and it works perfectly, just want to be sure.
Sekib Omazic
@SekibOmazic
Well Immutable.jsisn't much prettier
@ericmartinezr I also use ReplaySubject(1) for that purpose
Eric Martinez
@ericmartinezr
Nice! I'm not the only crazy one! :P thx :D
Sekib Omazic
@SekibOmazic
You can try to decide upon http://www.introtorx.com/content/v1.0.10621.0/02_KeyTypes.html Couldn't see much difference to BehaviorSubject though
Eric Martinez
@ericmartinezr
Yup, probably BehaviorSubject would fit better since I'm passing one value, ReplaySubject can cache more than one. Thanks, I'll try that :+1:
There are so many options
Abhilash
@abhibly
Is it possible to use aux routes in a router-outlet?
JavascriptMick
@JavascriptMick
just for the dummies, does the Tour of Heroes tutorial finish at toh4? I found a toh5 but there are lots of errors in the snippets
Aleš
@fxck
I'd stay away from the tour of heroes..
it's like "look, http returns an observable, so the best thing you can do, obviously, is to wrap that in a promise, and manually handle resolve and reject"... I think it confuses people and gives them all the wrong ideas
JavascriptMick
@JavascriptMick
yea, i took the data handing with a grain of salt
pantonis
@pantonis
Im a newbie in angular2
any tutorial on asp.net and angular2?
Aleš
@fxck
if you are a newbie, then learn angular2 basics first
what backend you use after that is entirely up to you
Rob Wormald
@robwormald
@fxck ""look, http returns an observable, so the best thing you can do, obviously, is to wrap that in a promise, and manually handle resolve and reject"
where is that happening?
Aleš
@fxck
I'm probably exaggerating, but there is something similar happening, let me find it..
dunno, either can't find it(wrapping http in a promise), or it was changed already, http://stackoverflow.com/questions/34455531/angular-2-object-works-object-child-throws-error?noredirect=1#comment56653446_34455531 here's the confusion though

that guy is doing this

  getProfileData(username:string):any {
    return new Promise((resolve, reject) => {
      this._authHttp.get(API_PREFIX + '/users/username/' + username)
        .map(res => res.json())
        .subscribe(
          data => {
            resolve(data.data);
          },
          err => {
            reject(err);
          }
        )
      ;
    });

simple because he saw promises being used in the tutorial

Vlado Tesanovic
@vladotesanovic
What is the best way to detect when @Input('something') get value?