People
Repo info
Activity
  • 00:47
    kspearrin commented #16030
  • 00:47
    kspearrin commented #16031
  • Jun 04 14:48
    kspearrin commented #16031
  • Jun 04 14:48
    kspearrin commented #16031
  • Jun 04 11:16
    Narretz commented #16031
  • Jun 04 11:09
    Narretz commented #16032
  • Jun 04 11:09
    Narretz closed #16032
  • Jun 04 11:03
    sharonvardi commented #15588
  • Jun 04 02:14
    kspearrin commented #16031
  • Jun 04 02:11
    Travis angular/angular.js#16031 passed (24588)
  • Jun 04 01:56
    kspearrin edited #16031
  • Jun 04 01:41
    Travis angular/angular.js#16031 pending (24588)
  • Jun 04 01:41
    kspearrin synchronize #16031
  • Jun 03 20:51
    luciomartinez commented #15953
  • Jun 03 20:37
    luciomartinez synchronize #15953
  • Jun 03 18:56
    JennyWalters commented #16028
  • Jun 03 17:59
    PblcMatrixLead closed #16029
  • Jun 03 17:58
    PblcMatrixLead opened #16032
  • Jun 03 15:03
    Travis angular/angular.js#16031 failed (24587)
  • Jun 03 14:30
    Travis angular/angular.js#16031 pending (24587)
Notso
@notsonotso
angular4 was a huge success for us, typescript makes tooling so much better
but ymmv
Ayz Pat
@AyzPat
@notsonotso by the way wats the major changer in typecript 1.8 vs 2.x??
Heber Nobre
@zbrukas
@hubertgrzeskowiak ng2 has better tooling and it's less frustrating to learn from scratch I believe
Notso
@notsonotso
@AyzPat I started on typescript 2, so dunno
Heber Nobre
@zbrukas
IHMO of course
Hubert Grzeskowiak
@hubertgrzeskowiak
i hope so, because AngularJS was a PITA to learn
Ayz Pat
@AyzPat
@notsonotso k...
Notso
@notsonotso
@hubertgrzeskowiak yeah, I hate angularjs with a passion, even tho I did several projects. angular4 otoh is great
Hubert Grzeskowiak
@hubertgrzeskowiak
is there a solution for globally saved state yet?
Notso
@notsonotso
I can't believe Microsoft made typescript and visual studio code. Superb stuff.
Heber Nobre
@zbrukas
Ditto
Hubert Grzeskowiak
@hubertgrzeskowiak
for example, I have an app that is basically a big visual editor and I need to have the complete JSON somewhere
Heber Nobre
@zbrukas
Angular app?
Notso
@notsonotso
@hubertgrzeskowiak editors is exactly the example the angular team uses as an example of there angular is wrong :)
Hubert Grzeskowiak
@hubertgrzeskowiak
components kinda don't play well with the idea of a global state
Notso
@notsonotso
angular is for crud apps
@hubertgrzeskowiak services
Hubert Grzeskowiak
@hubertgrzeskowiak
well, the single elements have CRUD
and yeah, I ended up using a service
Notso
@notsonotso
@hubertgrzeskowiak services provided on the app module are global
Hubert Grzeskowiak
@hubertgrzeskowiak
but it felt like a "shot in the knee" (that's what we say in germany)
Notso
@notsonotso
wut
CSS on the other hand is always shit
someone please fix that mess
Hubert Grzeskowiak
@hubertgrzeskowiak
@notsonotso not anytime soon. on the pro side: you can find tons of examples and documentation
this makes it suck less IMHO
and if you put some tooling around it for nesting, auto-prefixing etc. it's actually usable
Notso
@notsonotso
sure, but not much I can do about browser bugs, fuzzy specifications, etc
oh well
Brany Suero
@suerobeb

I am following a tutorial but I got into a problem. it is not a server problem. I tried a lot of things and I know google is my friend but I have google a lot so I figure I could ask the question.

I was able to display something in the frontend but at some point it stops displaying and it shows just my html syntax, I have the serve running all the time so I do not know whats the problem. Do you know how to solve the issue?

app.component.html file

<h1>
{{title}}
</h1>
app.component.ts file

import { Component } from '@angular/core';

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})

export class AppComponent {
title = 'app works!';
}
output:

{{title}}

i made it more simpler but still having the same issue.

Frederik Prijck
@frederikprijck
@hubertgrzeskowiak promises ain't the new word for callbacks. Observables are.
Even tho they are not async :D
erikbaan
@erikbaan
hmm not async ? is pub/sub not async by definition ?
Hubert Grzeskowiak
@hubertgrzeskowiak
kinda all different names for the same thing
attaching a certain predefined functionality on a certain event
correct me if I'm wrong but with callbacks you passed one function that did all handling of events (success, error etc). with promises you have to pass one function per event type and you can pass multiple handlers for the same event. is that right?
(going to read the replies tomorrow. need some sleep now)
Frederik Prijck
@frederikprijck
@hubertgrzeskowiak no. Promises are async, callbacks aren't. But yes, they are to solve the same thing. But I wouldn't call callbacks, promises or observables all different names for the same thing.
@erikbaan observables are basically all functions. Nothing async about pub sub that I know of.
Frederik Prijck
@frederikprijck
@hubertgrzeskowiak what are you looking for regarding a global state? Something like redux?
Have a look at ngrx (which is for angular bit can easily be ported to support angularjs) or redux - observable.
Frederik Prijck
@frederikprijck
correct me if I'm wrong but with callbacks you passed one function that did all handling of events (success, error etc). with promises you have to pass one function per event type and you can pass multiple handlers for the same event. is that right?
That's not really correct.
With callbacks you should still seperate the Succes from the error etc.
And promises are not really used for event handling as u are describing.
Observables are tho!
Pagnito
@Pagnito
@Pagnito
he i just installed babel on my mac, but when i enter babel -h, is says command not found
even tho i do see babel files in my users filder
gerome0123
@gerome0123
how to convert my [Resource] to Resource???
how to convert my [Resource] to Resource???