[00:03:38] *** voltron <voltron!~voltron@98.187.3.13> has quit IRC (Quit: Leaving)
[00:05:07] *** greengriminal <greengriminal!~greengrim@toroon633vw-lp140-02-67-71-99-188.dsl.bell.ca> has quit IRC (Quit: This computer has gone to sleep)
[00:06:30] *** greengriminal <greengriminal!~greengrim@toroon633vw-lp140-02-67-71-99-188.dsl.bell.ca> has joined #angularjs
[00:06:50] *** u0m3 <u0m3!~u0m3@5-12-199-29.residential.rdsnet.ro> has quit IRC (Ping timeout: 244 seconds)
[00:08:02] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has joined #angularjs
[00:12:38] *** greengriminal <greengriminal!~greengrim@toroon633vw-lp140-02-67-71-99-188.dsl.bell.ca> has quit IRC (Quit: This computer has gone to sleep)
[00:12:56] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has quit IRC (Ping timeout: 240 seconds)
[00:17:23] *** ceterizine <ceterizine!~ceterizin@2601:182:c77f:c8a5:347d:1eb:3b2b:cede> has joined #angularjs
[00:25:37] *** u0m3 <u0m3!~u0m3@188.25.13.157> has joined #angularjs
[00:36:28] *** Elisha <Elisha!~elisha@188-230-142-97.dynamic.t-2.net> has quit IRC (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
[00:37:38] *** plutoniix <plutoniix!~q@175.176.222.7> has joined #angularjs
[00:45:06] *** Masterphi <Masterphi!~Masterphi@unaffiliated/masterphi> has joined #angularjs
[00:51:10] *** floZxx <floZxx!~flozxx@vea42-2-78-244-69-110.fbx.proxad.net> has quit IRC (Remote host closed the connection)
[00:53:14] *** floZxx <floZxx!~flozxx@vea42-2-78-244-69-110.fbx.proxad.net> has joined #angularjs
[00:59:42] *** Masterphi <Masterphi!~Masterphi@unaffiliated/masterphi> has quit IRC (Quit: ZZZZzzzzz)
[01:01:18] *** Masterphi <Masterphi!~Masterphi@unaffiliated/masterphi> has joined #angularjs
[01:09:24] *** floZxx <floZxx!~flozxx@vea42-2-78-244-69-110.fbx.proxad.net> has quit IRC (Remote host closed the connection)
[01:12:17] *** CitizenX <CitizenX!~CitizenX@180-150-50-232.b49632.mel.nbn.aussiebb.net> has joined #angularjs
[01:14:12] *** AtumT <AtumT!~IRC@177.43.144.189.dynamic.adsl.gvt.net.br> has quit IRC (Quit: AtumT)
[01:14:22] *** Mylee <Mylee!~LeeLee@162-192-217-217.lightspeed.cicril.sbcglobal.net> has quit IRC ()
[01:16:05] *** Mylee <Mylee!~LeeLee@162-192-217-217.lightspeed.cicril.sbcglobal.net> has joined #angularjs
[01:18:20] *** Mylee <Mylee!~LeeLee@162-192-217-217.lightspeed.cicril.sbcglobal.net> has quit IRC (Client Quit)
[01:46:22] *** mordini <mordini!~paul@107-196-214-233.lightspeed.rlghnc.sbcglobal.net> has joined #angularjs
[01:49:26] *** mordini_ <mordini_!~paul@107-196-214-233.lightspeed.rlghnc.sbcglobal.net> has quit IRC (Ping timeout: 240 seconds)
[01:57:06] *** DanielKarp <DanielKarp!~textual@pool-71-163-164-178.washdc.fios.verizon.net> has quit IRC (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
[01:59:16] *** DanielKarp <DanielKarp!~textual@pool-71-163-164-178.washdc.fios.verizon.net> has joined #angularjs
[01:59:31] *** DanielKarp <DanielKarp!~textual@pool-71-163-164-178.washdc.fios.verizon.net> has quit IRC (Client Quit)
[02:09:16] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has joined #angularjs
[02:13:23] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has quit IRC (Ping timeout: 245 seconds)
[02:22:47] *** pwnd_nsfw <pwnd_nsfw!~pwnd@ool-44c4e154.dyn.optonline.net> has quit IRC (Ping timeout: 240 seconds)
[02:40:20] *** pwnd_nsfw <pwnd_nsfw!~pwnd@ool-44c4e154.dyn.optonline.net> has joined #angularjs
[02:44:20] *** freem|nd <freem|nd!~freemnd@107.171.184.100> has joined #angularjs
[02:44:23] *** freem|nd <freem|nd!~freemnd@107.171.184.100> has quit IRC (Changing host)
[02:44:23] *** freem|nd <freem|nd!~freemnd@unaffiliated/freemnd/x-8561706> has joined #angularjs
[02:44:39] *** maciuszek_ <maciuszek_!sid246459@gateway/web/irccloud.com/x-synuhtgwisqwlyfa> has quit IRC ()
[02:45:19] *** maciuszek <maciuszek!sid246459@gateway/web/irccloud.com/x-nwaeyqucuagpjtrt> has joined #angularjs
[02:46:57] *** {DV8} <{DV8}!~Deviate@135-23-85-110.cpe.pppoe.ca> has joined #angularjs
[02:48:33] *** Zeioth <Zeioth!~Zeioth@92.59.21.14> has quit IRC (Ping timeout: 244 seconds)
[02:48:35] *** DanielKarp <DanielKarp!~textual@pool-71-163-164-178.washdc.fios.verizon.net> has joined #angularjs
[02:56:15] *** Bacteria <Bacteria!~irssi@upldz.com> has quit IRC (Quit: Lost terminal)
[02:56:45] *** DanielKarp <DanielKarp!~textual@pool-71-163-164-178.washdc.fios.verizon.net> has quit IRC (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
[03:01:47] *** greengriminal <greengriminal!~greengrim@toroon633vw-lp140-02-67-71-99-188.dsl.bell.ca> has joined #angularjs
[03:13:56] *** Eugene_ <Eugene_!d0366801@gateway/web/freenode/ip.208.54.104.1> has quit IRC (Quit: Page closed)
[03:14:54] *** macwinner <macwinner!~macwinner@136.24.188.226> has quit IRC (Remote host closed the connection)
[03:46:05] *** Jervis_ <Jervis_!~suckme@49.248.62.23> has joined #angularjs
[03:47:49] *** lexileo <lexileo!~suckme@49.248.190.61> has quit IRC (Ping timeout: 246 seconds)
[03:48:46] *** macwinner <macwinner!~macwinner@136.24.188.226> has joined #angularjs
[03:53:48] *** macwinner <macwinner!~macwinner@136.24.188.226> has quit IRC (Ping timeout: 245 seconds)
[03:54:00] *** freem|nd <freem|nd!~freemnd@unaffiliated/freemnd/x-8561706> has quit IRC (Ping timeout: 250 seconds)
[04:26:23] *** greengriminal <greengriminal!~greengrim@toroon633vw-lp140-02-67-71-99-188.dsl.bell.ca> has quit IRC (Quit: This computer has gone to sleep)
[04:30:30] *** xekz <xekz!~kexmex@unaffiliated/kexmex> has joined #angularjs
[05:10:07] *** breakingsad <breakingsad!uid268831@gateway/web/irccloud.com/x-xhktgyhegkwjrocu> has joined #angularjs
[05:11:26] *** sctskw <sctskw!~sctskw@c-76-120-17-178.hsd1.co.comcast.net> has joined #angularjs
[05:21:00] *** Masterphi <Masterphi!~Masterphi@unaffiliated/masterphi> has quit IRC (Quit: ZZZZzzzzz)
[05:25:38] *** t4skforce <t4skforce!~t4skforce@cm100-100.liwest.at> has joined #angularjs
[05:27:17] *** sctskw <sctskw!~sctskw@c-76-120-17-178.hsd1.co.comcast.net> has quit IRC (Remote host closed the connection)
[05:50:13] *** macwinner <macwinner!~macwinner@136.24.188.226> has joined #angularjs
[05:54:28] *** macwinner <macwinner!~macwinner@136.24.188.226> has quit IRC (Ping timeout: 250 seconds)
[06:17:38] *** Jervis_ <Jervis_!~suckme@49.248.62.23> has quit IRC (Ping timeout: 268 seconds)
[06:29:59] *** metrixx <metrixx!~metrixx@unaffiliated/metrixx> has joined #angularjs
[06:30:06] *** macwinner <macwinner!~macwinner@136.24.188.226> has joined #angularjs
[06:34:22] *** ceterizine <ceterizine!~ceterizin@2601:182:c77f:c8a5:347d:1eb:3b2b:cede> has quit IRC (Remote host closed the connection)
[06:34:55] *** ceterizine <ceterizine!~ceterizin@2601:182:c77f:c8a5:347d:1eb:3b2b:cede> has joined #angularjs
[06:36:23] *** al-damiri <al-damiri!uid142631@gateway/web/irccloud.com/x-aoxbdsgxlqxntxee> has quit IRC (Quit: Connection closed for inactivity)
[06:38:45] *** floZxx <floZxx!~flozxx@vea42-2-78-244-69-110.fbx.proxad.net> has joined #angularjs
[06:38:56] *** ceterizine <ceterizine!~ceterizin@2601:182:c77f:c8a5:347d:1eb:3b2b:cede> has quit IRC (Ping timeout: 240 seconds)
[06:42:37] *** tarnus <tarnus!~tarnus@2600:1702:2611:5a50:d929:67f4:ec58:4036> has quit IRC (Ping timeout: 250 seconds)
[06:42:49] *** CitizenX <CitizenX!~CitizenX@180-150-50-232.b49632.mel.nbn.aussiebb.net> has quit IRC (Quit: CitizenX)
[06:43:03] *** floZxx <floZxx!~flozxx@vea42-2-78-244-69-110.fbx.proxad.net> has quit IRC (Ping timeout: 246 seconds)
[06:43:45] *** ceterizine <ceterizine!~ceterizin@2601:182:c77f:c8a5:347d:1eb:3b2b:cede> has joined #angularjs
[06:55:28] *** Masterphi <Masterphi!~Masterphi@unaffiliated/masterphi> has joined #angularjs
[07:02:03] *** led_dark_1 <led_dark_1!~Thunderbi@hotspot10.rywasoft.net> has quit IRC (Quit: led_dark_1)
[07:04:29] *** led_dark_1 <led_dark_1!~Thunderbi@hotspot10.rywasoft.net> has joined #angularjs
[07:06:26] *** Masterphi <Masterphi!~Masterphi@unaffiliated/masterphi> has quit IRC (Quit: ZZZZzzzzz)
[07:10:27] *** ceterizine <ceterizine!~ceterizin@2601:182:c77f:c8a5:347d:1eb:3b2b:cede> has quit IRC (Remote host closed the connection)
[07:11:00] *** ceterizine <ceterizine!~ceterizin@2601:182:c77f:c8a5:347d:1eb:3b2b:cede> has joined #angularjs
[07:15:03] *** amitkm9204 <amitkm9204!~androirc@2405:204:4288:5adc:1089:a833:98e9:397d> has joined #angularjs
[07:15:26] *** ceterizine <ceterizine!~ceterizin@2601:182:c77f:c8a5:347d:1eb:3b2b:cede> has quit IRC (Ping timeout: 240 seconds)
[07:15:40] *** doggo <doggo!~theology@unaffiliated/theology> has quit IRC (Ping timeout: 264 seconds)
[07:34:52] *** cgfbee <cgfbee!~bot@oc1.itim-cj.ro> has quit IRC (Remote host closed the connection)
[07:50:55] *** mosulica <mosulica!~textual@i88.assist.ro> has joined #angularjs
[07:57:49] *** floZxx <floZxx!~flozxx@vea42-2-78-244-69-110.fbx.proxad.net> has joined #angularjs
[08:07:39] *** OnceMe <OnceMe!~OnceMe@unaffiliated/onceme> has joined #angularjs
[08:36:19] *** pupskuchen <pupskuchen!~pupskuche@unaffiliated/pupskuchen> has joined #angularjs
[08:44:25] *** Paradisee <Paradisee!~quassel@net77-43-18-082.mclink.it> has joined #angularjs
[08:44:45] <Paradisee> good morning
[08:49:42] <trampi> morning!
[08:49:55] <Paradisee> o/
[08:53:20] *** trcc <trcc!~trcc@users-5343.st.net.au.dk> has joined #angularjs
[08:53:34] *** trcc <trcc!~trcc@users-5343.st.net.au.dk> has quit IRC (Remote host closed the connection)
[08:54:00] *** trcc <trcc!~trcc@users-5343.st.net.au.dk> has joined #angularjs
[09:00:08] <Paradisee> i'm having a strange issue using ng serve, apparently it does not show nothing as output, and i cannot work with angular anymore.
[09:00:26] *** parasite <parasite!~Parasite@46.246.1.234> has quit IRC (Ping timeout: 240 seconds)
[09:00:58] <trampi> Paradisee: huh, that sounds strange. By the way, do you still need help with the json/dict table row field problem from yesterday? Or do you first have to fix the ng serve problem? :-)
[09:01:42] <Paradisee> i just solved with ng serve, it works now, just run npm install in the folder :O
[09:01:45] *** max_at <max_at!~max_at@unaffiliated/max-at/x-2708233> has joined #angularjs
[09:01:50] <Paradisee> trampi: btw yes, i still need help :D
[09:03:18] <trampi> haha, okay! So, you have different rows with input fields, each row has 5 to 6 inputs and you want to convert the input values to a json, representing that row / input structure, right?
[09:04:04] <Paradisee> ya
[09:04:16] <Paradisee> i already know how the json should looks like
[09:04:24] *** led1 <led1!~Thunderbi@hotspot10.rywasoft.net> has joined #angularjs
[09:04:47] <Paradisee> since i use it to pre-popolate the table with these data
[09:05:12] <trampi> ah! I see.
[09:05:52] <trampi> does the table which you are pre-populating already contains input-elements or do you just 'render the raw data'?
[09:06:08] *** SuperTyp <SuperTyp!~SuperTyp@15.5.3.213.static.wline.lns.sme.cust.swisscom.ch> has joined #angularjs
[09:07:00] <Paradisee> ill show you the component
[09:07:07] <trampi> perfect, that would help
[09:07:12] <SuperTyp> gm ng folks
[09:07:28] <trampi> morning SuperTyp!
[09:08:11] <Paradisee> basically that line makes all the rows i need with inputs prepopolated
[09:09:09] *** trcc <trcc!~trcc@users-5343.st.net.au.dk> has quit IRC (Remote host closed the connection)
[09:09:45] <SuperTyp> use [value]?
[09:09:49] *** trcc <trcc!~trcc@users-5343.st.net.au.dk> has joined #angularjs
[09:09:51] <Paradisee> uh?
[09:10:03] <Paradisee> isnt the same?
[09:10:28] <Paradisee> i actually read they both do the same thing, [] is more angular way
[09:12:46] <Paradisee> usinig [value] gives me undefined
[09:12:54] <Paradisee> in some inputs
[09:13:17] *** Tazmain <Tazmain!~Tazmain@unaffiliated/tazmain> has joined #angularjs
[09:13:21] <trampi> import FormsModule where you declare your component, then define the inputs like this: <input [(ngModel)]="item.break_in" type="text">
[09:13:25] <SuperTyp> Paradisee: I didn't look at your code
[09:14:13] *** trcc <trcc!~trcc@users-5343.st.net.au.dk> has quit IRC (Ping timeout: 245 seconds)
[09:14:31] <Paradisee> trampi: could you explain me the way you think it should work?
[09:14:33] *** trcc <trcc!~trcc@users-5343.st.net.au.dk> has joined #angularjs
[09:14:54] <SuperTyp> Paradisee: rtfm
[09:14:57] <Paradisee> i know [(foo)] does 2way binding
[09:15:32] <SuperTyp> this is basic stuff you are trying to do
[09:15:33] <Paradisee> but i still dont get how to think about the whole thing
[09:15:36] <SuperTyp> it's all in the docs
[09:15:40] <SuperTyp> aber perfectly explained
[09:16:04] <SuperTyp> stop wasting everybody's time here
[09:16:05] <SuperTyp> and*
[09:16:09] <Paradisee> SuperTyp: as i said, i can't think to a proper solution, even if it is in the doc
[09:16:11] *** Pyrrhus666 <Pyrrhus666!~Pyrrhus66@157.97.112.115> has joined #angularjs
[09:16:33] <SuperTyp> sure you can just read the docs carefully
[09:16:51] <SuperTyp> there 2 ways of doing it, template driven forms and reactive forms
[09:16:57] <SuperTyp> it's all there!
[09:16:58] <Tazmain> Morning all
[09:16:59] <Pyrrhus666> morning #angularjs
[09:17:20] <SuperTyp> gm Tazmain gm Pyrrhus666
[09:17:31] <Tazmain> o/ Pyrrhus666
[09:17:33] <Tazmain> o/ SuperTyp
[09:17:54] <trampi> morning Tazmain, morning Pyrrhus666!
[09:17:58] <Tazmain> o/ trampi
[09:18:30] *** xekz <xekz!~kexmex@unaffiliated/kexmex> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)
[09:18:38] *** exonity01 <exonity01!2e059f99@gateway/web/freenode/ip.46.5.159.153> has joined #angularjs
[09:19:35] *** led1 <led1!~Thunderbi@hotspot10.rywasoft.net> has quit IRC (Quit: led1)
[09:22:31] <Tazmain> my headphones are not keeping up with drowning out the sound of the guys assembling desks at work :(
[09:23:00] <SuperTyp> what headphones do you have?
[09:23:23] <Tazmain> I swapped from my Senheisers to my Razor's right now
[09:23:27] <Tazmain> Normally use the senheisers
[09:23:51] <Tazmain> but you know drips and 4 pound hammers :/
[09:23:55] <Tazmain> drills **
[09:24:57] <SuperTyp> you could help them?
[09:25:01] <SuperTyp> :D
[09:25:27] <SuperTyp> if you can't work anyway. Good reason for a break :P
[09:25:56] <Tazmain> Not my job
[09:26:05] <Tazmain> I would rather KO the internet right now
[09:26:08] <Tazmain> well ours
[09:26:14] <Paradisee> trampi: this is how i populate the whole structure/table
[09:26:15] <trampi> in my old company, we sometimes had internet outages. The kitchen was always overflowing when that happened
[09:26:54] <Tazmain> Well our wifi seems to have issues
[09:27:01] <Tazmain> every now and then we can't connect to sites
[09:27:25] <Tazmain> And the company is being to stingy to install LAN for everyone right now. Just going to do for the IPBX phones
[09:27:52] <SargoDarya> Morning folks
[09:28:00] <Pyrrhus666> morning SargoDarya
[09:28:14] <trampi> morning SargoDarya!
[09:28:30] <SuperTyp> gm SargoDarya
[09:29:08] <SuperTyp> Tazmain: use your phones hotspot as workaround?
[09:29:51] <Tazmain> SuperTyp, our data is TOO expensive , I am not gonna use my data for the company.
[09:30:04] <SuperTyp> I c
[09:30:11] <Tazmain> I'll swap to the 100meg lan and kill the wifi :p
[09:30:58] <SuperTyp> Paradisee: so whats the problem?
[09:31:51] <Tazmain> I hate open plan offices
[09:32:00] <SuperTyp> Paradisee: you should use interfaces/classes so that you and other developers (maybe your colleagues) have a better overview of your data structure (your json)
[09:32:34] <trcc> Good morning
[09:32:59] <Pyrrhus666> morning trcc
[09:33:45] <Paradisee> SuperTyp: im a python developer, for you it might be all cool cause you already know lot of stuff on angular, unfortunally i have to use it for my work, and trust me, i don't really like the way it works. I feel absolutely lost, since i have to learn a new framework in so few time
[09:35:22] <Paradisee> SuperTyp: I understand your way of: "read the doc, it's all there", that's what i would suggest to everyone that begins with python aswell, but gotta learn this framework, and i'm currently working on a project and i know nothing about angular, even if i study every single day
[09:36:10] <Paradisee> and guess what? nobody knows angular in my team, cool right? it's all on my shoulders.
[09:37:05] <SuperTyp> Paradisee: I can feel you, I started with Java, I had no idea about Angular/TypeScript as well
[09:37:10] <SargoDarya> Paradisee: Have you done the tutorial?
[09:37:27] <SargoDarya> That's better than just trying to make sense of the doc
[09:37:41] <SuperTyp> But do you know what the difference is when we help you out here (with basic things) compared to when you read the docs?
[09:37:45] <Paradisee> SuperTyp: i did the tutorial, and i read so many other guide about, even watched a full course on udemy, but i cannot spend 24hrs per day studing.
[09:38:17] <SargoDarya> Paradisee: You don't have to.
[09:38:35] <Paradisee> im doing my best, but you have to understand that doing new stuff is not easy
[09:38:45] <SuperTyp> Paradisee: the difference is simple, you will understand Angular without us losing our time for things that are already pretty well explained in the docs
[09:38:52] *** ray02 <ray02!~ray@78.192.34.122> has joined #angularjs
[09:38:57] <SargoDarya> Paradisee: I'm trying to get into Spring, I know exactly how you feel.
[09:38:57] <SuperTyp> gm ray02 hehe
[09:38:58] <Paradisee> like this thing with the form, i would have done using getelementbyid
[09:39:01] <SargoDarya> Morning SuperTyp
[09:39:19] <Pyrrhus666> Paradisee, my advice : try to do stuff on stackblitz. it makes it easy for us to look at stuff with you
[09:39:32] <SuperTyp> Paradisee: see this is the point that shows us clearly you haven't read the docs
[09:39:48] <SuperTyp> and I don't talk about all the docs
[09:39:50] <Paradisee> SuperTyp: reading the whole doc takes time
[09:39:56] <SuperTyp> just the part that you need
[09:40:02] <ray02> hello hello Morning SuperTyp
[09:40:02] <Paradisee> SuperTyp: that's what i do
[09:40:13] <Paradisee> Pyrrhus666: ill give a try
[09:40:19] <Pyrrhus666> morning ray02
[09:40:21] <ray02> morning channel!
[09:40:29] <SuperTyp> and forms is what you need right now, so spend 1 hour reading how Angular handles forms
[09:40:39] <SuperTyp> this one hour I promise will clear things up
[09:40:52] <ray02> how are you doinng ? happines?
[09:41:01] <SuperTyp> and if not I am happy to help you for real
[09:41:24] <SuperTyp> ray02: so much happiness :) Have date with my crush today
[09:41:40] <ray02> SuperTyp: sbaaam!
[09:41:42] <trampi> uuuuh! wish you all the best SuperTyp!
[09:41:47] <SuperTyp> thx haha
[09:41:54] <SuperTyp> I mean I already had a date with her, but guess what happened?
[09:42:06] <ray02> you fall in sleep
[09:42:20] <Paradisee> SuperTyp: well, i was reading about forms, but i don't fet some of the things, anyway going to read again
[09:42:28] <SuperTyp> we were in my car in front of her house...a good friend called me and my phone was damn loud "hey what are you doing, ready to go out with two hot single ladies"?
[09:42:40] <ray02> loool
[09:42:56] <SargoDarya> Paradisee: If you don't get something in specific we're here for support
[09:43:00] <SuperTyp> I played it cool she even still let me in but in the end she was damn pissed haha
[09:43:22] <ray02> so tonight bluetooth headphone ?
[09:43:27] <SuperTyp> so after more than two weeks now, I get a second chance :P
[09:43:44] <SuperTyp> ray02: I'll switch my phone off haha
[09:43:50] <ray02> good plan :d
[09:44:06] <SuperTyp> (bc there is another girl that keeps video calling me lmao)
[09:45:19] <ray02> man as a second job you work as a toyboy ? :p
[09:46:49] <Pyrrhus666> SuperTyp, if it´s facetime you´re using, you are aware of the bug they just found ? :P
[09:47:06] <SuperTyp> Team Android here
[09:47:10] <ray02> Pyrrhus666: ah just read about that
[09:47:12] <SuperTyp> Pyrrhus666: what bug though?
[09:47:21] *** ceterizine <ceterizine!~ceterizin@2601:182:c77f:c8a5:10a3:9ea1:502c:e42> has joined #angularjs
[09:47:36] <Pyrrhus666> in short : listening in on the person you call without them picking up
[09:47:37] <ray02> ppl can listen/see you before the convesation start
[09:47:51] <ray02> a very nice bug
[09:47:58] <ray02> for fbi
[09:47:59] <ray02> :p
[09:48:49]
<trampi> SuperTyp: you're from swiss, right? "Probleme gibt es beim Zuschalten des Mikrofons und der Kamera: Chatteilnehmer können Audio und Video der angerufenen Personen bereits hören, bevor diese abnehmen, wenn ein bestimmter Ablauf bei der Anrufreihenfolge durchgeführt wurde" source: https://www.golem.de/news/sicherheitsluecke-gruppen-facetime-von-apple
[09:48:51] <SuperTyp> damn haha
[09:49:28] <trampi> thats really super evil...
[09:49:52] <SuperTyp> yep
[09:49:57] <SuperTyp> but already disabled function
[09:50:34] <SuperTyp> so time to learn some Liferay...
[09:50:41] <SuperTyp> :§
[09:51:26] <ray02> Liferay ?
[09:52:09] *** ceterizine <ceterizine!~ceterizin@2601:182:c77f:c8a5:10a3:9ea1:502c:e42> has quit IRC (Ping timeout: 268 seconds)
[09:52:13] <Paradisee> i've just read part of the form doc, and i did not get what's the difference between the reactive and template drive.
[09:52:41] <SuperTyp> ray02: yeah its a Portal Framework based on Java and OSGi
[09:54:30] *** lightstalker <lightstalker!~lightstal@unaffiliated/thebrain> has quit IRC (Ping timeout: 246 seconds)
[09:54:55] <SuperTyp> Paradisee: when you use template driven form you bi-directionally bind the input value to a model
[09:55:06] <SuperTyp> by using [(ngModel)]
[09:55:55] <Paradisee> basically if you type something in an input or whatever, the value changes on the property too right?
[09:56:17] *** lightstalker <lightstalker!~lightstal@unaffiliated/thebrain> has joined #angularjs
[09:56:21] <SuperTyp> exactly
[09:56:24] *** ceterizi_ <ceterizi_!~ceterizin@2601:182:c77f:c8a5:25ff:aa1e:b038:128a> has joined #angularjs
[09:56:41] <Paradisee> also if you change the property, it changes the value in the input and so on.
[09:57:08] <SuperTyp> in reactive forms you have to manually and explicitly trigger the changes of your form into your model
[09:57:43] <Paradisee> in my case the first would be good
[09:57:49] <Paradisee> since i have lot of inputs to manage
[09:57:58] <SuperTyp> its called template driven because all the binding stuff (ngModel) is happening in the template
[09:58:26] <SuperTyp> Paradisee: there is no right or wrong here
[09:58:44] <Paradisee> ofc, it depends on how you manage the whole application and stuff
[09:59:14] <Paradisee> what i don't understand is:
[10:00:21] <Paradisee> if you have n inputs, with [(ngModel)]="foo", you should change the variable foo for each input
[10:00:39] *** ceterizi_ <ceterizi_!~ceterizin@2601:182:c77f:c8a5:25ff:aa1e:b038:128a> has quit IRC (Ping timeout: 250 seconds)
[10:00:43] *** Elarcis <Elarcis!~Elarcis@154.125.224.35.bc.googleusercontent.com> has joined #angularjs
[10:00:46] <SuperTyp> foo is your model here
[10:00:51] <SuperTyp> do you know what is meant by model?
[10:01:12] <Paradisee> not really, but i suppose is a sort of definition of the whole form
[10:01:25] <exonity01> Is it possible to change the name of file when someone is downling an image that is provided by rest api? <img [src]="imageSrc" alt="My Image from API"/>
[10:01:48] <SuperTyp> Paradisee: not really no
[10:02:20] <SuperTyp> its essential knowledge
[10:02:30] <SuperTyp> (I am sure that exists in Python too?)
[10:02:34] <Paradisee> i use them in django
[10:02:53] <Paradisee> SuperTyp: of course, thought you were talking about angular's magic
[10:03:54] <SuperTyp> well ngModel is Angular "Magic" but in the end it adapts the mvc pattern
[10:04:06] <Paradisee> in some way, ya.
[10:04:17] <Paradisee> ok, so i can do sort of:
[10:04:18] <max_at> exonity01: You need to rename it on the serverside, file name can be specified via header
[10:04:27] <Paradisee> ([ngModel])=foo.bar
[10:04:34] <SuperTyp> yes
[10:04:48] <Paradisee> that way i can access my attributes
[10:04:53] <SuperTyp> yes
[10:05:08] <Paradisee> and i suppose in my foo i will have all this data
[10:05:14] <Paradisee> since it is bidirectional
[10:05:20] <Paradisee> got it.
[10:05:25] <SuperTyp> and let me recommend you again to use an Interface/Class to represent your Model
[10:05:35] <Paradisee> mm
[10:05:40] <SuperTyp> this will help you a lot
[10:05:43] <exonity01> thanks max_at!
[10:05:57] <SuperTyp> your code becomes cleaner and also intellisense will help you out
[10:05:58] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has joined #angularjs
[10:06:01] <exonity01> My search focus was too much on changing the name on the client side.
[10:06:03] <Paradisee> you say something like:
[10:06:11] <Paradisee> foo: MyInterface;
[10:06:57] <Paradisee> i'm not sure how to define my interface, i mean, i know how the json file should look like since i got it from my backend, but dunno....there's something im missing
[10:07:46] <SuperTyp> Paradisee: yes foo: MyInterface
[10:07:49] <exonity01> It's okay for me to change the name on the server side.
[10:07:58] <exonity01> That's where I got the names.
[10:08:19] <max_at> makes more sense there
[10:08:40] <SuperTyp> Paradisee: create a folder called "model" where your service is, that is consuming the API you are using and add a file myModel.interface.ts
[10:10:03] <max_at> exonity01: You can do it like most websites do .. files are stored by hash etc and the link to it is just a description.. eg domain.xx/11111111-description-of-the-image.jpg .. and 11111111 is the file identifier, while whatever is behind it, is kind of ignored, but used for seo reasons.
[10:11:15] <exonity01> max_at, I need to protect the files.
[10:11:22] <exonity01> Thats the reason I used this way
[10:11:36] <Paradisee> ok SuperTyp, thank you, gonna read all this stuff, in the meanwhile i need something to eat :D
[10:11:37] <exonity01> And I do not want to add the bearer token to the url
[10:12:11] <exonity01> Or is there any other solution to do this?
[10:12:25] <max_at> exonity01: cookies is not an option?
[10:12:44] <max_at> exonity01: cookies/session token is not an option?
[10:12:51] <max_at> oops, sorry
[10:13:03] <Pyrrhus666> exonity01, I serve images as blobs via an api, with all the usual protection
[10:14:12] <max_at> Pyrrhus666: is you want to show them as img srcs, you are not doing it with bearer token, right? "usual protection" as in cookie/session id?
[10:14:16] <exonity01> I think this is what I'am doing?
[10:14:53] <Pyrrhus666> max_at, no, bearer tokens. the return blob is assigned to an img
[10:15:32] <exonity01> I got an rest api that serves my images with all nescessary protection and on client side I call these api endpoints, download the blob and show the content with <img [src]="imageSrc" alt="" />
[10:15:48] <Pyrrhus666> also, once the client has the blob, you can let the user download it with whatever filename you want
[10:16:21] <max_at> got it, that makes also sense
[10:16:22] <SuperTyp> Paradisee: have fun and enjoy your meal
[10:17:07] <Elarcis> Blegh.
[10:17:40] <Pyrrhus666> and a good morning to you too Elarcis
[10:17:44] <SuperTyp> Elarcis: meh
[10:17:46] <exonity01> Morning!
[10:19:56] <exonity01> are there any problems or disadvantages with serving the images by angular with [src]="imageSrc"?
[10:22:11] <SuperTyp> compareto what?
[10:22:16] <SuperTyp> compared to*
[10:22:47] <SuperTyp> exonity01: I did it that way in my project and never had an issue
[10:23:38] <Elarcis> exonity01: if imageSrc is not a proper URL or base64 img, it will act weird, otherwise I don't know
[10:24:17] <Elarcis> exonity01: maybe you'd rather want a custom directive to validate the URL, show a spinner or something when the image is loading, etc.
[10:24:18] <exonity01> Okay. I do not know another solution yet :-)
[10:27:14] *** Mattch <Mattch!~mrichar1@w5430.see.ed.ac.uk> has joined #angularjs
[10:27:52] <SuperTyp> well yea I wrapped the img in a component of course
[10:28:25] <SuperTyp> exonity01: well another solution would be a canvas, but thats overkill
[10:32:06] *** ceterizi_ <ceterizi_!~ceterizin@2601:182:c77f:c8a5:2deb:3156:82d7:6576> has joined #angularjs
[10:32:26] <max_at> exonity01: Just remembered that we had an image verifier in an ng1 project .. it create new Image() with the url and if this one is valid it showed the image. on load onerror a default image was shown. we did not need to have bearer token tough..
[10:35:18] <exonity01> Okay. Thanks - I think i'll use my current solution and add some custom directive
[10:36:37] *** ceterizi_ <ceterizi_!~ceterizin@2601:182:c77f:c8a5:2deb:3156:82d7:6576> has quit IRC (Ping timeout: 250 seconds)
[10:37:18] *** max_at <max_at!~max_at@unaffiliated/max-at/x-2708233> has quit IRC (Remote host closed the connection)
[10:38:44] <exonity01> what is the problem Paradisee?
[10:38:52] *** breakingsad <breakingsad!uid268831@gateway/web/irccloud.com/x-xhktgyhegkwjrocu> has quit IRC (Quit: Connection closed for inactivity)
[10:38:55] <Paradisee> exonity01: never user an interface :D
[10:39:48] <exonity01> It's normal typescript stuff
[10:40:53] <Pyrrhus666> Paradisee, I still say the dict thing should be an array. that will make like easier.
[10:45:38] <SuperTyp> Paradisee: you see the brackets in line 1 and 21?
[10:45:58] <Paradisee> SuperTyp: ya
[10:45:59] <SuperTyp> Paradisee: that tells you its an object, it should be an array though [...]
[10:46:10] <SuperTyp> can you tell the backend developer to fix this?
[10:46:18] <SuperTyp> (it's your right to do so)
[10:46:28] <Paradisee> he made lot of mistakes, i already told him
[10:46:37] <Paradisee> now i can fix all this stuff on my own
[10:46:50] <SuperTyp> so you have access to the BE?
[10:46:53] <SuperTyp> to fix the API?
[10:47:11] <SuperTyp> it will make your life easier in the FE
[10:47:11] <Paradisee> SuperTyp: ya
[10:47:17] <SuperTyp> leggo then :)
[10:50:32] <Paradisee> gonna check the code
[10:50:37] <Paradisee> hope it is not messed up
[10:50:47] <Pyrrhus666> always assume the worst
[10:51:44] *** {DV8} <{DV8}!~Deviate@135-23-85-110.cpe.pppoe.ca> has quit IRC (Ping timeout: 250 seconds)
[10:51:53] *** plutoniix <plutoniix!~q@175.176.222.7> has quit IRC (Quit: Leaving)
[10:53:18] <Paradisee> looks like they do not create the json file in the backend.
[10:53:26] <Paradisee> they have wrote the json by end somehow
[10:53:36] <Paradisee> s/end/hand
[10:54:32] <SuperTyp> what BE is it?
[10:54:34] <Pyrrhus666> wtf ? there must be a default json serializer in python ?
[10:55:32] <Paradisee> from what i understood, the be created the json file for each month
[10:56:03] <Paradisee> when you do a GET request, it just send you back this json, and i have to populate the table with all the data i get
[10:56:23] <Paradisee> and you have to be able to modify this data and send back to the server using a post
[10:56:24] <SuperTyp> can you share some code?
[10:56:47] <Paradisee> SuperTyp: fe or be?
[10:56:53] <SuperTyp> BE
[10:57:16] <Paradisee> its python, and kinda messed up
[10:57:29] <Paradisee> ill show you the api
[10:57:48] <Paradisee> just part of it
[10:58:09] <Paradisee> trying to rewrite this part aswell
[10:58:13] <Paradisee> now is kinda better
[11:00:08] *** max_at <max_at!~max_at@217.111.93.34> has joined #angularjs
[11:00:08] *** max_at <max_at!~max_at@217.111.93.34> has quit IRC (Changing host)
[11:00:08] *** max_at <max_at!~max_at@unaffiliated/max-at/x-2708233> has joined #angularjs
[11:00:37] *** metrixx is now known as Guest79113
[11:00:39] *** metrixx_ <metrixx_!~metrixx@unaffiliated/metrixx> has joined #angularjs
[11:01:42] *** ray02 <ray02!~ray@78.192.34.122> has quit IRC (Ping timeout: 246 seconds)
[11:03:09] <SuperTyp> when I understood right you have to look at this function: search_timesheet_by_month
[11:03:24] <SuperTyp> because it is returning your result (your json)
[11:03:44] <Paradisee> SuperTyp: ya i know. it search loclaly if there's the file
[11:03:50] <Paradisee> and returns it as json
[11:04:07] <SuperTyp> then modify it to return you an array instead an object
[11:05:15] *** Guest79113 <Guest79113!~metrixx@unaffiliated/metrixx> has quit IRC (Ping timeout: 272 seconds)
[11:06:39] <Paradisee> they do not create the json there unfortunally
[11:06:43] <Paradisee> its done manually
[11:06:57] <Paradisee> so i need to fix the json they got before, and then i can fix the rest of the code
[11:07:01] <Paradisee> btw im working on it yet
[11:07:06] <SuperTyp> Paradisee: explain "manually"
[11:07:19] <Paradisee> they wrote the json by hand
[11:07:26] <Paradisee> since they were trying the app
[11:07:32] <SuperTyp> so its mock data?
[11:07:38] <Paradisee> ya
[11:07:41] <SuperTyp> ahhh
[11:07:58] <SuperTyp> I thought its connected to a ERP System smh
[11:10:08] *** Rikcreabot <Rikcreabot!d4d266a4@gateway/web/freenode/ip.212.210.102.164> has joined #angularjs
[11:10:30] <Rikcreabot> Morning folks
[11:11:11] <Rikcreabot> I'm looking for a pracical guide online for angular like angular-templates.io, do you have any good recommendation?
[11:13:22] *** max_at <max_at!~max_at@unaffiliated/max-at/x-2708233> has quit IRC (Remote host closed the connection)
[11:14:56] <Elarcis> Rikcreabot: what do you mean by "practical"? Real life examples, or pre-made projects? You mentionned angular-templates.io as an example, but it seems it is not really what you're looking for?
[11:15:01] *** max_at <max_at!~max_at@217.111.93.34> has joined #angularjs
[11:15:01] *** max_at <max_at!~max_at@217.111.93.34> has quit IRC (Changing host)
[11:15:01] *** max_at <max_at!~max_at@unaffiliated/max-at/x-2708233> has joined #angularjs
[11:17:25] <Rikcreabot> Thanks, both for showing up (Elacris - SuperTyp), I've just finished both, I was looking for something structured like angular-templates but more advanced
[11:18:07] *** stennowork <stennowork!~stenno@unaffiliated/chao> has joined #angularjs
[11:18:30] <SuperTyp> Rikcreabot: can't help with that, but do you have any specific questions?
[11:19:08] <Elarcis> Rikcreabot: I think Angular.io is itself open source and made with Angular, in case that might interest you
[11:19:40] <Elarcis> Rikcreabot: but at one moment, you gotta stop readin and dive into it :P
[11:19:46] <Rikcreabot> not yet, I'm having a first taste of it, I come from back end development and due to company request I'm getting some knowledge in a new field
[11:20:14] <SuperTyp> Paradisee: ^ you see this guy? haha
[11:20:50] <Rikcreabot> thanks Elarcis
[11:21:13] <Elarcis> Rikcreabot: ah, then if you got time, maybe you could start a toy-project, try to implement something like a personnal calendar app or the like, so you could try your knowledge and see where you're lacking?
[11:21:30] <SuperTyp> Rikcreabot: maybe you could missunderstanding I wanted to give you props for reading the docs :)
[11:22:39] <Paradisee> SuperTyp: i see :)
[11:24:02] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has quit IRC (Remote host closed the connection)
[11:24:21] *** ray02 <ray02!~ray@78.192.34.122> has joined #angularjs
[11:28:41] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has joined #angularjs
[11:29:07] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has quit IRC (Remote host closed the connection)
[11:29:41] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has joined #angularjs
[11:33:48] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has quit IRC (Ping timeout: 245 seconds)
[11:39:07] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has joined #angularjs
[11:39:30] <Paradisee> this should be ok
[11:39:54] <Paradisee> what do you guys think?
[11:41:08] <Pyrrhus666> Paradisee, still an object
[11:41:42] <Paradisee> mmm
[11:42:57] <Paradisee> in python this is how its done
[11:43:21] <Pyrrhus666> this is nothing to do with python, it´s just a serialization question
[11:44:56] <Paradisee> how should it be done?
[11:45:20] <Pyrrhus666> there´s no real right or wrong, but for ease of use it should be an array.
[11:45:41] <Pyrrhus666> I mean, the indices are meaningless, just indicating order, hence array
[11:45:45] <stennowork> and then write the id of the timesheet into an object
[11:45:51] <stennowork> into the object*
[11:46:24] <Paradisee> they id there are days
[11:46:44] <Paradisee> i could also remove the indices, but i dunno
[11:46:56] <Paradisee> isnt better if i could do: object[1]
[11:47:19] <stennowork> so: "timesheet": [{ "id": 1", "time_in": ...}]
[11:47:25] <stennowork> Paradisee, did you do PHP before JS?
[11:47:33] <Paradisee> stennowork: 15 years ago
[11:47:51] <Paradisee> stennowork: doing that way you have to access the object
[11:48:05] <Paradisee> you have also to iterate over the list to get the actual id
[11:48:06] <stennowork> timesheet[0].id
[11:48:29] <Paradisee> i dont like the idea
[11:48:37] <Paradisee> does it make so much difference?
[11:49:43] <Paradisee> btw, im able to show the table with the json i receive.
[11:50:20] <Paradisee> i need to work on the POST thing to modify the whole timesheet right now.
[11:50:38] <Elarcis> Paradisee: if you want your data to be ordered, use an array. If you want it to be indexed, use an object.
[11:51:15] <Elarcis> Paradisee: let's use a hammer for nails, and a net for butterflies.
[11:51:19] <Paradisee> in both case doesn't really change much (just saying"
[11:51:53] <Elarcis> Paradisee: you can totally catch a butterfly with a hammer
[11:52:06] <Paradisee> that's too extremist :D
[11:52:22] <stennowork> what you should consider though is avoiding a sparse array - thats the worst combination of both worlds
[11:52:29] *** trcc <trcc!~trcc@users-5343.st.net.au.dk> has quit IRC (Ping timeout: 268 seconds)
[11:52:33] <stennowork> actually you can't even do a sparse array with JSON, never mind
[11:54:11] <Elarcis> stennowork: you mean an array with a majority of undefined/null elements?
[11:54:23] <stennowork> no, it's even worse in javascript
[11:54:32] <Elarcis> stennowork: how would that work?
[11:54:38] <stennowork> like, when you have [1,,3], the second element is actually _empty_
[11:54:43] *** {DV8} <{DV8}!~Deviate@135-23-85-110.cpe.pppoe.ca> has joined #angularjs
[11:54:46] <stennowork> it's not null, it's not undefined, it's empty
[11:54:57] <stennowork> n> "test"
[11:55:00] <stennowork> aw
[11:55:29] <stennowork> in javascript, sparse arrays are possible, but not in JSON
[11:55:38] <stennowork> i _think_
[11:56:14] <stennowork> yeah it's illegal in JSON:
[11:56:25] <stennowork> <stennowork> n> JSON.parse("[1,,2]")
[11:56:25] <stennowork> <jellobot> Error: SyntaxError: Unexpected token , in JSON at position 3
[11:56:32] <ansu> but how is [1,,3] different from [1,undefined,3]?
[11:56:33] <Elarcis> stennowork: ah, you mean that the item is totally undefined, not just its value
[11:56:50] <stennowork> ansu, it's relevant for things like .map
[11:56:53] <Pyrrhus666> I just get JSON.stringify([1,,3]) -> [1,null,3] which makes sense ?
[11:57:02] <Elarcis> ansu: see my message: there is a 1 key in the array, but it is undefined
[11:57:06] <stennowork> Pyrrhus666, ah yeah
[11:57:15] <ansu> Pyrrhus666: if you do [1,,3][1] you get undefined ^^
[11:57:18] <Elarcis> ansu: in stennowork's example, there is no 1 key
[11:57:31] <Pyrrhus666> ansu, I know ;)
[11:57:34] <stennowork> Pyrrhus666, it's a bit complicated
[11:57:38] <stennowork> err sorry, ansu
[11:57:41] <Elarcis> ansu: that is because there are two meanings to undefined
[11:57:56] <Elarcis> ansu: it can both be an undefined object key and the value undefined
[11:58:08] <Paradisee> SuperTyp: i'm gonna show you my html
[11:58:15] <stennowork> ansu, for example: [1,,2].map((_,i) => i) will yield [1,undefined,2]
[11:58:29] <Elarcis> ansu: some people prefer using `null` as a value, so that they can differentiate it from undefined keys
[11:58:47] <stennowork> as opposed to, say, [1,undefined,2].map((_,i) => i) which will yield [0,1,2]
[11:59:19] <stennowork> err sorry the first is [0,undefined,2]
[11:59:40] <stennowork> it doens't have an index associated with it
[11:59:46] *** {DV8} <{DV8}!~Deviate@135-23-85-110.cpe.pppoe.ca> has quit IRC (Ping timeout: 250 seconds)
[11:59:48] <stennowork> <stennowork> n> [1,,2].map((_,i) => i)
[11:59:48] <stennowork> <jellobot> (okay) [ 0, <1 empty item>, 2 ]]
[12:00:12] <stennowork> as opposed to:
[12:00:16] <stennowork> <stennowork> n> [1,undefined,2].map((_,i) => i)
[12:00:16] <stennowork> <jellobot> (okay) [ 0, 1, 2 ]
[12:00:22] <ansu> actually chrome console says (3) [0,empty,2] in your first example, tho if you expand it the index 1 is missing
[12:00:24] <stennowork> see the difference?
[12:00:29] <ansu> yeah
[12:00:55] <stennowork> this has it's advantages of course but it generally makes things much more complicated
[12:01:09] <Elarcis> stennowork, ansu: or just new Array(10)
[12:01:11] <stennowork> if you expect huge-ass sparse arrays, then use object indices instead
[12:01:26] <stennowork> Elarcis, yes, that will yield an array with 10 empty fields
[12:01:35] <Paradisee> how do you use ngModel in a form using a form ?
[12:01:42] <Paradisee> using a for*
[12:01:44] <stennowork> so (new Array(10)).map((_,i) => i) will do nothing
[12:02:18] <Elarcis> Paradisee: just like you did
[12:02:23] <stennowork> you can 'un-sparsify' arrays by using ...: [...Array(3)] will yield [undefined, undefined, undefined]
[12:02:29] <Elarcis> stennowork: Array.from({length: 10}, (_, i) => i)
[12:02:30] <Paradisee> Elarcis: it gives me an error
[12:02:41] <stennowork> Elarcis, yes, thats the best way to do it
[12:02:43] <Elarcis> Paradisee: since you didn't provide a stackblitz I can't help you further
[12:02:49] <stennowork> gotta love the second parameter of Array.from :D
[12:03:14] <Elarcis> stennowork: the mysterious, magical second parameter :P
[12:03:21] <Elarcis> hidden in plain sight
[12:03:26] <stennowork> the often forgotten second parameter
[12:04:22] <stennowork> in PHP, sparse arrays are even worse
[12:04:44] <stennowork> and they are easy to create because we have insertion order even for 'numerical' arrays
[12:04:52] <Elarcis> The Forgotten One, the one only worshippers of MDN's arcanes are aware of, despite it never being hidden from anyone
[12:05:22] <stennowork> so $foo = []; $foo[1] = "bar"; $foo[0] = "foo"; will yield { 1 => "bar", 0 => "foo" }
[12:06:08] <stennowork> which also leads to the _funny_ consequence that json_encode almost never knows when a php array is actually an array instead of an object
[12:06:25] <stennowork> fucking php man
[12:07:42] <Pyrrhus666> any sane coder will never run into those idiosyncrasies. I never have.
[12:08:16] <Paradisee> the error does not help me
[12:09:31] <stennowork> Pyrrhus666, you will see that array_* keep indices
[12:11:12] <Pyrrhus666> stennowork, no sane programmer uses those ;)
[12:11:24] <stennowork> Pyrrhus666, i have an $foo = [1,2,3]; $result = array_filter($foo, function(el) { return el % 2 === 1; }); // $result will be {0 => "1", 2 => "3" }
[12:11:57] <Pyrrhus666> like I said: I never use array_*
[12:12:03] <stennowork> .-.
[12:12:04] <stennowork> what else
[12:12:11] <stennowork> just for loops?
[12:12:22] <Pyrrhus666> that or iterators
[12:12:42] <stennowork> how do you handle immutability
[12:12:48] <Pyrrhus666> map/reduce is fugly in php.
[12:13:00] *** Mylee <Mylee!~LeeLee@162-192-217-217.lightspeed.cicril.sbcglobal.net> has joined #angularjs
[12:13:03] <stennowork> it is, but the alternatives are worse imo
[12:13:23] <Pyrrhus666> *shrug* never had problems in the last 15 years :)
[12:13:24] <stennowork> i rather call (whatsitcalled) array_values or so? after my operations to make the indices correct again
[12:13:41] <Pyrrhus666> srsly, I never have index problems...
[12:13:46] <Mylee> guten morgen
[12:14:07] <stennowork> php's idea of closures are strange too
[12:14:09] <stennowork> Mylee, moin
[12:14:21] <ray02> hello hello Mylee
[12:14:41] <stennowork> Pyrrhus666, it's what i should be able to expect from a modern programming language, no?
[12:15:17] *** Rikcreabot <Rikcreabot!d4d266a4@gateway/web/freenode/ip.212.210.102.164> has quit IRC (Ping timeout: 256 seconds)
[12:15:26] <stennowork> for me, modern backend dev is mainly about list manipulation
[12:15:33] <Elarcis> stennowork: I rather not use PHP :P
[12:15:37] <stennowork> like as api server
[12:15:40] <stennowork> Elarcis, yep, fair
[12:15:42] <Pyrrhus666> stennowork, not from a language which so much backward compatibility legacy
[12:15:55] <Pyrrhus666> try java, with 4 datetime apis :P
[12:16:01] <Elarcis> stennowork: that may be why functionnal programming is so popular
[12:16:59] <stennowork> i agree - php is ass backwards with tons of legacy which makes it terrible
[12:17:19] <stennowork> Elarcis, yes, and apart from one or two important features i can do FP-style programming in JS
[12:17:27] <Mylee> I am making my first app, it takes a stock, looks at the last year or last 5 years, and determines if one should buy or sell. I got the idea after reading the book, 'rule 1 investing'. I got the back end to work using NET, decided to learn angular a few months ago. I am so excited that it is almost done, the front end. I have been stuck the last few days on how to get a value from one
[12:17:27] <Mylee> component to another without getting the html interface
[12:17:33] <stennowork> important features would be pattern matching and tail recursion
[12:18:20] <stennowork> oh and monadic promises of course
[12:18:30] <Elarcis> stennowork: I'm not too fond of FP-style programming in vanilla JS due to the massive amount of iterations. I rather care about immutability, limiting side effects and using GODDAMN MAGICAL REDUCE everywhere.
[12:18:31] <stennowork> but you can hack your way around that
[12:19:03] <stennowork> Elarcis, what's the problem? you can do it with JS
[12:19:14] <stennowork> `const` allows you to avoid reassignment at least
[12:19:32] <stennowork> i think my latest JS project has 0 for loops and one `let`
[12:19:41] <stennowork> anything else is `const` and iterator methods
[12:20:32] <Elarcis> stennowork: I'm all for pattern matching, but I hate that proposal's syntax
[12:20:50] <Mylee> is pattern matching like machine learning?
[12:20:57] <stennowork> Elarcis, fair enough
[12:20:57] <Elarcis> stennowork: I'd rather remove the `when` and separate each case with a comma
[12:21:11] <Elarcis> Mylee: absolutely not
[12:21:15] <Pyrrhus666> a lot of tc stuff leads to horrible syntax, it seems
[12:21:46] <Elarcis> Mylee: it's more of a super-smart switch with built-in destructuring
[12:23:34]
<Mylee> I am using a get function to get the address object from one stripecomponent to a creditcardcomponent, it is defined in the stripe component, when i perform getAddress() in creditcardcomponent, it returns null, this.ccAddress = this.stripeComponent.getAddress(); https://stackblitz.com/edit/angular-irc-starter-u8fa7s
[12:23:47] <Pyrrhus666> I remember liking the pattern matching / guards stuff in haskell.
[12:24:10] <Elarcis> Pyrrhus666: in Rust it is phenomenal
[12:24:13] <stennowork> i first encountered pattern matching in my ill-fated erlang excursion
[12:24:23] <stennowork> but i didn't know shit about FP so i din't understand it
[12:24:28] <Mylee> ah, Elarcis, I know machine learning, I want to use it in my next app
[12:25:03] <Mylee> when your only tool is a hammer, everthing looks like a nail
[12:25:52] <Mylee> stennowork, we are living in the lucky years, research at our fingertips, Google
[12:25:57] <stennowork> i first looked at erlang "what kind of variable is that that you cannot re-assign? how can you even program with that?" little did i know about the wonderful things
[12:26:12] <stennowork> Mylee, trust me. FP is a whole complex can of worms
[12:26:37] <stennowork> it's not done by a simple google search
[12:27:22] <Pyrrhus666> never mind it being haskell, it´s more about the fp
[12:27:30] <stennowork> i think if i wanted to look into a FP language, it'd be Rust or F#
[12:27:32] <stennowork> FP-like
[12:27:47] <stennowork> both of those are not _pure_ FP which is maybe a good thing
[12:28:05] <Pyrrhus666> haskell has its impure IO via the IO monad ;
[12:28:47] <stennowork> gasp :P
[12:30:53] <Mylee> when I lived in california, I got a library card, it gives me access so many technical books online it is unbelievable. The drawback is after 20 minutes, I have log in again. It is good in addition to google, and amazon ratings that tell me what books are worth my time
[12:31:14] <stennowork> not a fan of books for learning programming
[12:31:15] <Mylee> don't tell anyone but, I did not relinquish my library card
[12:31:32] <stennowork> i rather look at tutorials like Pyrrhus666 posted, and look at actual code written by experts
[12:31:39] <Pyrrhus666> ^^
[12:31:46] <Mylee> most books have the code on github
[12:31:56] *** ceterizi_ <ceterizi_!~ceterizin@2601:182:c77f:c8a5:79ea:7ab:aa12:69ec> has joined #angularjs
[12:32:05] <stennowork> they are outdated
[12:32:06] <Mylee> github allows private repos with up to three people and the people at github
[12:32:32] <stennowork> trust me, i am programming for a long long time and learned most of it as autodidact :P
[12:32:48] <Mylee> I look at books that are published in 2018 or 2019, and yes they are still outdated but enough to teach me
[12:34:24] <stennowork> shrug
[12:34:30] <stennowork> not a fan of books
[12:34:52] <stennowork> especially for javascript, where everything changes just so fast
[12:35:42] <Mylee> I am a newbie at javascript and angular, so free ebooks are okay,
[12:36:10] *** ceterizi_ <ceterizi_!~ceterizin@2601:182:c77f:c8a5:79ea:7ab:aa12:69ec> has quit IRC (Ping timeout: 250 seconds)
[12:36:24] <stennowork> well whatever suits you best
[12:36:24] <Mylee> there are some badass tutorials online for angular, that's how i got my register/login code
[12:37:03] <Mylee> and I get lynda.com through my local library at home
[12:37:45] <Mylee> it is where I began to learn angular in september, a guy did lectures on net and angular, he was amazing
[12:42:27] <Mylee> Pyrrhus666, gave a good url on Haskell
[12:42:59] <Pyrrhus666> which is, I admit, also a book :P
[12:43:22] <Mylee> ebooks are okay
[12:43:39] <stennowork> it takes a lot of effort of keeping them up to date
[12:43:40] <Mylee> sometimes I like to hold a book and learn, but I will not pay for one
[12:45:32] *** Zeioth <Zeioth!~Zeioth@92.59.21.14> has joined #angularjs
[12:47:17]
<Mylee> Pyrrhus666, may you take a look and tell me what I am doing wrong? I am using a get function to get the address object from one stripecomponent to a creditcardcomponent, it is defined in the stripe component, when i perform getAddress() in creditcardcomponent, it returns null, this.ccAddress = this.stripeComponent.getAddress(); https://stackblitz.com/edit/angular-irc-starter-u8fa7s
[12:49:57] <SuperTyp> I'm back
[12:51:47] <Mylee> hi SuperTyp
[12:51:51] <Pyrrhus666> Mylee, what do I do to recreate the error you´re seeing ?
[12:53:12] <Mylee> Pyrrhus666, expand the console window, file out the form in stripecomponent by going to /stripe, the address will be console log in the window, got to /cc and I console the getAddress but is null
[12:53:45] <Mylee> got=go
[12:54:06] *** Noti <Noti!~steffan@ip4da40774.direct-adsl.nl> has joined #angularjs
[12:54:15] <Pyrrhus666> Mylee, why would you expect to have access to the filled stripe component in the cc component constructor ?
[12:54:36] <Pyrrhus666> you now just inject a new empty stripe component, I think ?
[12:55:19] <Pyrrhus666> this is not how component interaction works (if I understand your code correctly)
[12:55:34] <Mylee> Pyrrhus666 using "ngOnInit(){this.ccAddress = this.stripeComponent.getAddress(); console.log('this is the ccAddress name', this.ccAddress.name); " }
[12:56:09] <Pyrrhus666> this.stripeComponent is not the component you expect. it´s a newly constructed, empty one
[12:56:11] <Mylee> I figured stripecomponent was empty
[12:56:31] <Mylee> how can I assign that to the value I created in stripeComponent?
[12:57:07] *** Elarcis <Elarcis!~Elarcis@154.125.224.35.bc.googleusercontent.com> has quit IRC (Quit: WeeChat 1.4)
[12:57:19] <Pyrrhus666> you probably want a singleton service somewhere to keep track of some entity that contains that data (a ´transaction´ entity maybe ?)
[12:58:32] *** Robin___ <Robin___!~Damien@535319D9.cm-6-4a.dynamic.ziggo.nl> has joined #angularjs
[12:59:14] <Mylee> let me google that Pyrrhus666, lol
[12:59:44] <Mylee> what is a transacton entity?
[13:00:27]
<Robin___> Hello :) Im trying to change the opacity of the imgData[i + 3] = 150; on line 33 (not the image itself), but how to do it? https://pastebin.com/iZaMTHFC thanks :D
[13:00:27] <Pyrrhus666> just my name for some object containing the data you gather via your forms. it seems you´re doing a transaction, hence the name
[13:01:20] <stennowork> Robin___, looks good?
[13:01:41] <stennowork> just do like 33 then without line 30 to 32
[13:01:54] <stennowork> you probably want to re-assign the image data back to the image, right?
[13:02:37] <Robin___> stennowork: i dont want to change opacity of the image itself, but the color overlay :)
[13:02:42] <stennowork> so call putImageData(imageData)
[13:03:17] <Pyrrhus666> line 38 ? :P
[13:03:20] <stennowork> instead of putImageData(img)
[13:03:51] <Pyrrhus666> ah yes :)
[13:03:56] <Robin___> cant put imgData as parameter
[13:04:31] <stennowork> what do you mean "cant"
[13:04:41] <Robin___> argument of type 'Uint8ClampedArray' is not assignable to parameter of type 'ImageData'. Type 'UintClampedArray' is missing the following properties fromt ype 'ImageData': data, height, width
[13:05:25] <SuperTyp> Robin___: can you tell us what your actual goal is?
[13:06:00] <SuperTyp> why this complex byte iteration?
[13:06:06] <Robin___> apply an color to the image (color overlay) and the change opacity of the color
[13:06:14] <stennowork> Robin___, as you can see from the MDN example
[13:06:19] <stennowork> this is exactly how you do things
[13:06:30] *** ceterizine <ceterizine!~ceterizin@2601:182:c77f:c8a5:80da:85ca:4c53:6ba> has joined #angularjs
[13:06:33] <SuperTyp> Robin___: and css is not a solution?
[13:06:40] <stennowork> oh wait
[13:06:46] <Robin___> ;)
[13:06:49] <stennowork> Robin___,
[13:07:01] <stennowork> you have to pass the full imgData object
[13:07:04] <SuperTyp> these underscores makes reading a bit harder imho
[13:07:06] <SuperTyp> can you remove them?
[13:07:17] <stennowork> so you re-assign imgData to img.data and then pass img in line 38
[13:08:27] <Robin___> img.data = imgData; ?
[13:08:33] <Robin___> img.data is read-only
[13:10:03] <Mylee> Pyrrhus666, do you know of any online sites where I can learn more about transactions?
[13:10:46] <Mylee> thanks Robin___! how is the netherlands?
[13:10:56] *** ceterizine <ceterizine!~ceterizin@2601:182:c77f:c8a5:80da:85ca:4c53:6ba> has quit IRC (Ping timeout: 240 seconds)
[13:10:59] <Pyrrhus666> Mylee, it´s just a name, it´s just an object carrying data around. you can call it Foo if you like ;)
[13:11:09] <Robin___> good I guess.
[13:11:11] <Mylee> I hate foo
[13:11:30] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has quit IRC (Remote host closed the connection)
[13:11:31] <Pyrrhus666> then use bar, baz, quux or whatever ;)
[13:11:32] <Mylee> Robin___, you do not have Trump as president, so there
[13:11:40] <Mylee> hehe Pyrrhus666
[13:11:56] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has joined #angularjs
[13:11:59] <Robin___> damn stennowork, this is a tricky one
[13:13:39] *** exonity01 <exonity01!2e059f99@gateway/web/freenode/ip.46.5.159.153> has quit IRC (Ping timeout: 256 seconds)
[13:15:03] <SuperTyp> Paradisee: any progress?
[13:16:11] <Robin___> what are good angular forums for questions? :)
[13:16:26] <SuperTyp> this irc
[13:16:49] <Pyrrhus666> reddit´s /r/angular. SO.
[13:17:01] <Robin___> @SuperTyp: haha, thats true
[13:21:40] <Pyrrhus666> the angular documentation is very good in general
[13:22:16] <Robin___> Pyrrhus666: true, but my specific issue seems very, very tricky
[13:22:36] <Pyrrhus666> Robin___, your issue is more js related though ;)
[13:22:50] <Robin___> i guess so
[13:22:58] <Mylee> Pyrrhus666, thanks for pointing me the way, I was lost
[13:24:42] <Pyrrhus666> Mylee, np.
[13:27:11] <SuperTyp> Robin___: ##javascript
[13:29:33] <Paradisee> i have a question.
[13:29:53] <Paradisee> let's say i have an object data like so: foo = { .. }
[13:30:04] <Paradisee> and i want to make a new variable containing foo
[13:30:13] <Paradisee> i used to do:
[13:30:27] <Paradisee> bar = []; bar.push(foo)
[13:30:36] <Paradisee> but i end up with bar being an array
[13:31:12] <Pyrrhus666> you make it an array, so yes.
[13:31:18] <Paradisee> but i wont
[13:31:25] <Paradisee> i want it to be the same type
[13:32:06] <Pyrrhus666> so don´t make it an array ? what else would you expect bar to be after you assign it an array and use push (which is an array method)
[13:32:11] <Paradisee> i know i could make an interface (even if i never wrote one), but i just wanna know if i can make a variable of type = {}
[13:32:42] <Pyrrhus666> this has nothing to do with interfaces ?
[13:33:09] <Pyrrhus666> do you want to clone foo ? is that it ?
[13:33:46] <Paradisee> ya
[13:34:59] <Pyrrhus666> you have to understand that doing foo=bar; is assigning a reference, and the fact that javascript has no clone method.
[13:36:02] <Paradisee> then i suppose i have to write my own interface right?
[13:36:16] <Paradisee> i don't wanna do strange things.
[13:36:16] <Pyrrhus666> this has nothing to do with interfaces.
[13:36:23] <Paradisee> specially for my needs
[13:36:49] <Pyrrhus666> this is how javascript works. it´s strange by default ;)
[13:37:18] <Paradisee> what do you suggest then?
[13:37:59] <Pyrrhus666> read what I sent you, read the links I sent you, and enhance your knowledge of javascript ;)
[13:39:09] *** Elarcis <Elarcis!~Elarcis@154.125.224.35.bc.googleusercontent.com> has joined #angularjs
[13:39:48] *** icebox <icebox!~nodebot@213.215.204.90> has joined #angularjs
[13:40:08] *** Alina-malina <Alina-malina!~Alina-mal@unaffiliated/alina-malina> has quit IRC (Remote host closed the connection)
[13:40:55] <icebox> hey folks
[13:41:13] <Pyrrhus666> maestro !
[13:42:05] <jlebrech> javascript was designed to make buttons change color, don't judge it too harshly
[13:42:05] <Paradisee> is it possible to do: <tr *ngFor="let item of timesheet[0]">
[13:42:06] <Paradisee> ?
[13:42:28] <Paradisee> since my variable is an array now...i have to access it in that way...
[13:42:49] <jlebrech> is timesheet[0] an array?
[13:42:58] <Pyrrhus666> I don´t believe it :P
[13:42:59] <Paradisee> gonna show the code
[13:43:12] <Mylee> I would print out timesheet[0]
[13:43:30] <Mylee> console log it that is to make sure it is an array
[13:43:41] <Paradisee> it is an array, im typing the code...
[13:44:08] <Pyrrhus666> your code shows nothing of what timesheet[0] is.
[13:44:34] <jlebrech> it could be the first item of timesheet, in that case it won't be an array
[13:44:57] <Paradisee> this is data
[13:45:29] <Pyrrhus666> still an object
[13:45:41] <Mylee> show timesheet[0]
[13:46:07] <Pyrrhus666> still... an... object... :P
[13:46:08] <Paradisee> {status: "approved", timesheet: {…}, user_id: "paolorollo"}
[13:46:23] <Pyrrhus666> that is not timesheet[0]
[13:46:47] <Paradisee> it is
[13:46:54] <Paradisee> since timesheet = []
[13:46:57] <Mylee> that is timesheet
[13:46:58] <Pyrrhus666> OK, I´m out
[13:47:06] <Paradisee> and i do: this,timesheet.push(result)
[13:47:25] <Mylee> timesheet is not the same as timesheet[0]
[13:47:48] <Paradisee> your probably missunderstanding the names from the json and the variables
[13:48:12] <Paradisee> if you notice the code, i have:
[13:48:15] <Paradisee> timesheet = []
[13:48:23] <Paradisee> that is an empty array
[13:48:33] <Paradisee> and that's where i put all the json i have
[13:48:48] * Pyrrhus666 bangs head against table until bloody
[13:49:01] <Mylee> i think timesheet[0] is not defined
[13:49:01] <Paradisee> the only way to access the data is to do timesheet[0] since that array has only 1 element
[13:50:30] <SuperTyp> Pyrrhus666: hahahaha
[13:50:32] <Paradisee> what do you mean
[13:50:33] <SuperTyp> I feel you so hard
[13:50:37] <SuperTyp> #nohomo
[13:50:56] <Pyrrhus666> SuperTyp, #maybebi then :P
[13:51:14] <Mylee> trying to access timesheet[0] is akin to accessing apple[0], both are unknown
[13:51:45] *** AndrewIsh <AndrewIsh!~andrew@mrboom.plus.com> has joined #angularjs
[13:51:58] <Paradisee> Mylee: i dont really get what you're trying to saying
[13:52:02] <SuperTyp> look at your data structure
[13:52:22] <SuperTyp> Paradisee: line 2 what do you see?
[13:52:26] <Paradisee> im sorry that one is wrong
[13:52:28] <Paradisee> my bad
[13:53:01] <Paradisee> this is the correct one
[13:54:26] <Paradisee> hope you can now understand what i was saying
[13:55:24] <SuperTyp> Paradisee: so...no array
[13:55:30] <SuperTyp> line 2 what do you see?
[13:55:31] <Paradisee> no
[13:55:39] <SuperTyp> I thought you wanted to fix it?
[13:55:45] <Paradisee> "timesheet": {
[13:55:51] <Paradisee> that's it
[13:55:55] <Paradisee> only dicts
[13:56:04] <SuperTyp> and { <--- means?
[13:56:22] <Paradisee> that's an object
[13:56:50] <SuperTyp> so how do you want to iterate over an object?
[13:56:54] <SuperTyp> is that possible in python?
[13:56:55] <SuperTyp> no
[13:56:59] <Paradisee> yes.
[13:57:05] <SuperTyp> over the keys?
[13:57:10] <Paradisee> of course
[13:57:17] <Paradisee> we got .keys, .items
[13:57:19] <SuperTyp> we've been there already
[13:57:26] <Paradisee> and so many other ways
[13:57:51] <SuperTyp> ok, so in general, if you want to iterate over something it has to be iteratable right?
[13:58:06] <Paradisee> what im trying to do first of all is to basically remove the array that contains the whole json
[13:58:14] <Paradisee> SuperTyp: of course.
[13:58:21] <SuperTyp> in javascript an object itself is not iteratable (Im not talking about it's fields/properties)
[13:58:35] <SuperTyp> Paradisee: there is no array
[13:58:44] <Paradisee> i have a var = []
[13:58:50] <SuperTyp> not in your json
[13:58:56] <Paradisee> and inside i have [ { my json } ]
[13:58:59] <SuperTyp> are we jumping topics now?
[13:59:03] <Paradisee> nope
[13:59:19] <SuperTyp> where do you have [{ my Json }] ?
[13:59:20] *** mosulica <mosulica!~textual@i88.assist.ro> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)
[13:59:31] <SuperTyp> not in the last paste you shared
[13:59:56] * Pyrrhus666 passes around a fresh batch of popcorn
[14:00:24] <Paradisee> result is basically the json i pasted before
[14:00:26] *** tarnus <tarnus!~tarnus@2600:1702:2611:5a50:5820:8039:f219:9320> has joined #angularjs
[14:00:40] <Mylee> SuperTyp, is an outstanding teacher, he makes you figure it out
[14:01:03] <SuperTyp> Pyrrhus666: now I am really motivated
[14:01:13] <Pyrrhus666> SuperTyp, go for it !
[14:01:25] <SuperTyp> Paradisee: so the result comes from your work you did in the BE?
[14:01:33] <Paradisee> ya
[14:01:38] <SuperTyp> I got you now
[14:01:47] <Paradisee> that's something
[14:01:52] <SuperTyp> so my friend
[14:02:07] <Mylee> Paradisee will get it because she is tenacious, the basic requirement for getting stuff done, only have to be smart a little bit
[14:02:19] <Mylee> lol SuperTyp
[14:02:34] <SuperTyp> can you make timesheet an array and place the objects in this array?
[14:02:56] <Paradisee> you mean the key: "timesheet" an array?
[14:03:02] *** mosulica <mosulica!~textual@i88.assist.ro> has joined #angularjs
[14:03:17] <SuperTyp> Paradisee: so that line two looks somethign like this like this: "timesheet": [ { ... }, {...} ]
[14:03:39] <Paradisee> i could, just to be able to iterate over in js?
[14:03:50] *** pupskuchen <pupskuchen!~pupskuche@unaffiliated/pupskuchen> has quit IRC (Ping timeout: 268 seconds)
[14:04:02] <SuperTyp> Paradisee: not only just but because its wellformed data structure and it will ease your life
[14:04:07] <SuperTyp> (and mine)
[14:05:21] <Paradisee> ok
[14:06:38] <Paradisee> done
[14:06:49] <Paradisee> but i still have foo = [ my_json ]
[14:07:49] <SuperTyp> show me please
[14:08:00] <Paradisee> the json is just fine
[14:08:51] <Paradisee> in here my data is a json, but since i need the whole json to work, i need to make a variable in my instance
[14:08:59] <Paradisee> but if i declare it like: foo = []
[14:09:20] <Paradisee> the variable will be an array with my json.
[14:09:26] <Paradisee> that's just weird
[14:09:44] *** Aquazi <Aquazi!uid312403@gateway/web/irccloud.com/x-bmmgsyhytnzszowy> has joined #angularjs
[14:09:57] *** tarnus <tarnus!~tarnus@2600:1702:2611:5a50:5820:8039:f219:9320> has quit IRC (Remote host closed the connection)
[14:10:45] <Paradisee> i dont know if you understand what im trying to say
[14:11:09] <SuperTyp> show me the json first my friend
[14:11:25] <SuperTyp> the one with the new structure
[14:11:49] <SuperTyp> because if I don't know how you ds looks like its hard to guide you, you understand?
[14:13:26] * SuperTyp has an orgasm
[14:13:31] <Pyrrhus666> OMG IT´S AN ARRAY !!!111!!one
[14:14:38] <SuperTyp> nice now we can go further Paradisee
[14:14:48] <stennowork> nice
[14:15:21] *** mosulica <mosulica!~textual@i88.assist.ro> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)
[14:15:23] <Paradisee> lets go on
[14:15:24] <SargoDarya> I feel like I missed something
[14:15:36] <SuperTyp> SargoDarya: a lot my friend
[14:15:42] <SuperTyp> but you don't want headache haha
[14:15:55] <Pyrrhus666> SargoDarya, if you really want, it´s all logged :P
[14:16:02] <Paradisee> i don't wanna be the clown of the chat btw.
[14:16:16] <SuperTyp> Paradisee: in your getTimeSheet function
[14:16:17] <Paradisee> if learning means this, im out
[14:16:34] <SuperTyp> Paradisee: keep cool mate
[14:16:38] <SuperTyp> Paradisee: thats the price
[14:16:41] <SuperTyp> just kidding
[14:17:06] <SargoDarya> Paradisee: no worries, we try to take it cool and be friendly and not insulting or anything.
[14:17:16] <SuperTyp> Paradisee: we could also just not answer or insult you? not better right? ;)
[14:17:34] *** mosulica <mosulica!~textual@i88.assist.ro> has joined #angularjs
[14:17:44] <SuperTyp> but yeah Paradisee sorry :-*
[14:17:49] <SuperTyp> ok lets look at you code ok?
[14:17:56] <SargoDarya> When you're willing to learn and you're not ignoring any advice here before having it given a try these folks are really helpful. Also if you need someone to talk about personal problems, all fine here.
[14:18:01] <Paradisee> SuperTyp: ok.
[14:18:04] <SargoDarya> Which reminds me, Pyrrhus666, did you sign already?
[14:18:49] <SuperTyp> Paradisee: line 22 data has now your beautiful json
[14:18:59] <Paradisee> exactly
[14:19:25] <SuperTyp> you can now do this: this.timesheet = data.timesheet
[14:19:32] <Pyrrhus666> SargoDarya, not yet, got the concept contract yesterday. looks good.
[14:19:47] <SuperTyp> Paradisee: let me show you how to create an interface to make your data more readable?
[14:19:53] <SargoDarya> Awesome, good to hear that
[14:19:56] <Paradisee> SuperTyp: ok
[14:20:18] <Paradisee> SuperTyp: gives me undefined
[14:20:26] <SuperTyp> Pyrrhus666: totally forgot, what company?
[14:20:38] <Paradisee> SuperTyp: right, got it
[14:22:39] <Mylee> you are brave, Paradisee, not a clown at all
[14:23:00] <SuperTyp> Mylee: you're such a cutiepie
[14:23:09] <Pyrrhus666> SuperTyp, it´s a company that has a platform to host websites for theaters and other venues, which handles ticket sales and ties into various ticketing systems. looks fun.
[14:23:11] <Mylee> thanks SuperTyp, I love you too
[14:23:29] <ray02> Paradisee: it's just a good show to watch :d
[14:23:41] <SuperTyp> check line 24 (keep in mind, you would usually put these interfaces into separat files)
[14:24:07] <SuperTyp> Pyrrhus666: got a lot of requests from such companies to work for too
[14:24:16] <SuperTyp> like eventim reservix etc
[14:24:19] <Pyrrhus666> SuperTyp, do I spot an any ?
[14:24:28] <SuperTyp> Pyrrhus666: psh
[14:24:29] <Mylee> Pyrrhus666 is a genius
[14:24:50] <SuperTyp> Paradisee: do you understand what I wrote there?
[14:24:57] <Pyrrhus666> SuperTyp, it´s mostly backend, so no angular for now...
[14:25:04] <Mylee> if I believed in god, I would be afraid of his 666 in his nick
[14:25:08] <SuperTyp> Pyrrhus666: good luck dude
[14:25:15] <stennowork> wot is going on here lol
[14:25:21] <Pyrrhus666> and now, for an encode, lets make assignments an array too :P
[14:26:29] <Pyrrhus666> SuperTyp, and thx :)
[14:26:39] <Paradisee> SuperTyp: ya
[14:26:47] <Mylee> my lengthy experience with C++ made C# easy to use on my backend with NET and visual studio, the best debugger ever, the only reason I stay with windows
[14:26:52] <Paradisee> im missing one thing in my json
[14:26:52] <ansu> the channel is on fire that's going on :D
[14:26:54] <Paradisee> the days
[14:27:04] <stennowork> C# is awesome
[14:27:07] <Elarcis> Paradisee: to be honest you may be way more patient with us than we are with you.
[14:27:09] <stennowork> s/awesome/really good/
[14:27:19] <stennowork> reason why i want to look into F#
[14:27:34] <Mylee> stennowork, it is a bit scary of what I can do in C# that is not allowed in C++
[14:27:45] <Paradisee> SuperTyp: in my component.html i used timesheet.timesheet in the *ngfor
[14:27:53] <Mylee> C# and angular are so good for my OCD
[14:28:02] <stennowork> OCD?
[14:28:06] <Elarcis> Paradisee: truth is you're lacking a lot of Javascript and general CS skill that we just cannot understand how someone could not know them, which adds to the frustration.
[14:28:25] <Pyrrhus666> ^^
[14:28:26] <Mylee> stennowork, I am an engineer, remember engineers like order
[14:28:27] *** cgfbee <cgfbee!~bot@oc1.itim-cj.ro> has joined #angularjs
[14:28:41] <stennowork> software developers like order too
[14:28:52] <Paradisee> Elarcis: im a backend developer, im afraid
[14:29:09] <Paradisee> first time working on front end with something i dont know
[14:29:35] <Mylee> yes stennowork! moreso for software developers, I would have majored in software if it got respect when I graduated in 1984
[14:29:38] <Paradisee> unfortunally they gave me this work and i cant do much
[14:29:47] <jlebrech> it's possible to "iterate" over a single object like so [obj] or Object.keys(obj) but who'd want to do that?
[14:30:12] <Mylee> Paradisee, find some good tutorials online
[14:30:14] <Elarcis> Paradisee: yes, that's the issue you see: Angular is a front-end framework, and it is generally frowned upon to begin webdev with them. It is a tricky matter, F-E FW are complicated, require pretty advanced skills and are amongst the hardest thing you could do with Javascript.
[14:30:41] <Paradisee> Elarcis: i must do it. can't say more
[14:31:01] <Mylee> OCD = obsessive compulsive disorder
[14:31:16] <Paradisee> i would love to continue working on python, unfortunally they assigned me angular, what can i say?
[14:31:40] <Paradisee> i can do it btw, i just need time.
[14:31:41] <jlebrech> is the project even started?
[14:31:48] <Mylee> do the tour of heros Paradisee, I have done it twice so far
[14:31:51] *** no_dice <no_dice!add472dd@gateway/web/freenode/ip.173.212.114.221> has joined #angularjs
[14:32:10] <Paradisee> jlebrech: ya, they made the whole thing using Flask (python), and i have to redo the front end using angular
[14:32:36] <jlebrech> flask + vuejs or react would be a dream
[14:32:43] *** s2013 <s2013!~textual@cpe-72-226-62-58.nyc.res.rr.com> has joined #angularjs
[14:32:55] <jlebrech> why double up on mvc work baffles me
[14:33:13] <Paradisee> SuperTyp: as i said before, is it possible to remove the array definition in my timesheet ?
[14:33:15] <Elarcis> Paradisee: you should share your struggle with your employer, tell them that you feel overwhelmed, and ask for a few days of respite, enough time for you to follow MDN's JS tutorial for basics, then angular.io's tutorial when you feel more informed. If your employer has more than two neurons, they'll understand
[14:33:34] <Mylee> ^^^^
[14:33:39] <Paradisee> already said
[14:33:40] <jlebrech> +1
[14:33:41] *** cgfbee <cgfbee!~bot@oc1.itim-cj.ro> has quit IRC (Remote host closed the connection)
[14:33:47] <Paradisee> no way, they wont me to work on this
[14:33:48] <Elarcis> Paradisee: if they do not understand, tell them that the ETA is tripled because of that
[14:34:00] <Paradisee> they dont care much
[14:34:05] <Mylee> tell him you will spend time learning javascript them angular using the tutorial
[14:34:10] <Paradisee> and i have no limit of time for the moment
[14:34:29] <Elarcis> Paradisee: then do the tutorials on your side as part of the project and when you're done, screw them and leave for a better company that cares about you.
[14:34:30] <Mylee> that is great, no limit of time, start at the beginning, javascript
[14:34:36] <Mylee> or better yet, typescript
[14:34:44] <Elarcis> Mylee: no, JavaScript.
[14:34:52] <Elarcis> Mylee: TypeScript will come in time.
[14:35:00] <Mylee> okay Elarcis, you are right
[14:35:11] <icebox> nah :)
[14:35:23] <jlebrech> Paradisee: don't embed it into you python code just yet, fake it till you make it. you'll understand the next thing you have to do as you go along
[14:35:26] <Elarcis> icebox: they're doing Angular, TypeScript HAS to come :P
[14:35:39] <icebox> ah yes... :)
[14:35:39] <Mylee> I took an online mobile web specialist course with Udacity that used Javascript with promises, it was vital to learn angular
[14:36:04] <Mylee> I never got callbacks....
[14:36:11] <Mylee> observables rule
[14:36:22] <jlebrech> promises are annoying, looking forward to putting in async await everywhere :P
[14:36:50] <Mylee> I used async/await with promises in the course....
[14:36:55] <Mylee> but not observables
[14:37:09] *** max_at <max_at!~max_at@unaffiliated/max-at/x-2708233> has quit IRC (Remote host closed the connection)
[14:37:22] <Elarcis> Mylee: but promises are all about callbacks
[14:37:29] <Elarcis> Mylee: if you got promises, you got callbacks
[14:37:44] <Mylee> it was a free online course, won a scholarship, I used them to take an online self driving car course, I worked in automotive industry for decades
[14:37:52] <jlebrech> callback you can finish coding elsewhere
[14:38:07] <Mylee> Elarcis, I never got the syntax right for callbacks, promises made more sense to me
[14:38:18] <Elarcis> jlebrech: sometimes I find the promise chaining more readable than async/await, funnily
[14:38:26] <Elarcis> jlebrech: but it depends, of course.
[14:38:45] <Elarcis> Mylee: callbacks are what you put inside .then() and .catch()
[14:38:57] <SuperTyp> Paradisee: did you check my stackblitz I shared with you?
[14:39:01] <Elarcis> Mylee: I'd say if you think you nailed promises, you nailed callbacks to me :P
[14:39:05] <Mylee> promises use try/catch
[14:39:38] <Elarcis> Mylee: that's not promises then, that's async/await (which uses promises)
[14:39:45] *** OnceMe <OnceMe!~OnceMe@unaffiliated/onceme> has quit IRC (Ping timeout: 246 seconds)
[14:40:01] *** AmVarPG <AmVarPG!~amvarpg@206-51-157-20.nktelco.net> has joined #angularjs
[14:40:04] <Mylee> yes, Elarcis, async./await using promises, they can be chained too
[14:40:34] <Elarcis> Mylee: ok you're right, you didn't really get callbacks :P
[14:40:43] <Paradisee> SuperTyp: YES
[14:40:45] <Mylee> lol
[14:41:00] <no_dice> would anyone here happen to know when exactly a on('connect', function() event fires? I have a page that gets populated from a DB, but it's only getting populated once the page renders and I refresh it
[14:41:10] <Mylee> well I am onto observables/subscribe now
[14:41:14] *** max_at <max_at!~max_at@unaffiliated/max-at/x-2708233> has joined #angularjs
[14:41:27] <Mylee> hopefully I will get them enough to make some money
[14:41:37] <SuperTyp> could you somehow understand what I wrote there?
[14:42:36] <Paradisee> SuperTyp: of course
[14:42:49] <Paradisee> nothing new
[14:44:09] *** no_dice <no_dice!add472dd@gateway/web/freenode/ip.173.212.114.221> has quit IRC (Quit: Page closed)
[14:45:44] *** max_at <max_at!~max_at@unaffiliated/max-at/x-2708233> has quit IRC (Ping timeout: 250 seconds)
[14:46:23] <Elarcis> SuperTyp: s/somewhat/somehow/
[14:47:11] <Elarcis> SuperTyp: somehow is "improbably", somewhat is "at some degree"
[14:50:21] *** OnceMe <OnceMe!~OnceMe@unaffiliated/onceme> has joined #angularjs
[14:51:30] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has quit IRC (Remote host closed the connection)
[14:52:19] <Paradisee> SuperTyp: my problem actually is that empty array
[14:56:20] <Paradisee> i would love to know how to use the interface to wrote
[14:56:27] <Paradisee> s/to/you
[14:56:54] <Mylee> Paradisee, I think you did not understand what SuperTyp wrote, I know it is challenging. I have had to come back to the channel to read what Pyrrhus666 wrote hours or days later to fully understand what he wrote
[14:57:18] <Paradisee> he created an new type
[14:57:26] <Paradisee> i know what he wrote.
[14:57:26] <Mylee> what kind of type?
[14:57:31] <Paradisee> i just never used it before
[14:57:41] <Paradisee> type MyData and MyObject
[14:57:48] <Paradisee> i can declare variables using that type
[14:58:11] *** max_at <max_at!~max_at@217.111.93.34> has joined #angularjs
[14:58:11] *** max_at <max_at!~max_at@217.111.93.34> has quit IRC (Changing host)
[14:58:11] *** max_at <max_at!~max_at@unaffiliated/max-at/x-2708233> has joined #angularjs
[14:58:13] <Paradisee> i'm not totally idiot, i just never used them before and i have no idea what's the purpose to use them in my code
[14:58:14] <Mylee> if you understood what he wrote, you would be all set
[14:58:44] <SuperTyp> Paradisee: it helps you to write cleaner code
[14:58:55] <Paradisee> SuperTyp: ok, but since i get data from a json
[14:59:04] <SuperTyp> the interface represents your json
[14:59:10] <Paradisee> how to i store the json using the interface
[14:59:13] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has joined #angularjs
[14:59:19] <SuperTyp> you dont store it using the interface
[14:59:31] <SuperTyp> it is already stored in "data"
[14:59:41] <SuperTyp> but now you need to assign it to timesheet
[15:00:01] <SuperTyp> there are interfaces in python arent there?
[15:00:04] <SuperTyp> Elarcis: thx :)
[15:00:45] <Paradisee> SuperTyp: not really
[15:01:08] <Paradisee> we have classes
[15:01:23] *** Siecje <Siecje!~cody@72.137.166.82> has joined #angularjs
[15:01:57] <Pyrrhus666> interface is like class, except you don´t instantiate it, you implement it.
[15:02:24] <Pyrrhus666> and in javascript the difference is almost negligible
[15:03:06] <SuperTyp> click on the load button and check the console
[15:03:32] <SuperTyp> sorry wrong file selected but still, click on the load somethign button and check the console
[15:04:09] <SuperTyp> now check line 18, there I say that data is of type MyData
[15:04:40] <SuperTyp> MyData has a field "timesheet" which is an array of MyObjects
[15:05:35] <Paradisee> i understand the interface
[15:05:40] <SuperTyp> good
[15:06:15] *** Noti <Noti!~steffan@ip4da40774.direct-adsl.nl> has quit IRC (Quit: Konversation terminated!)
[15:06:18] <Paradisee> timesheet: MyData = [];
[15:06:30] <Paradisee> mm no
[15:07:09] <SuperTyp> no Mydata is not an array
[15:07:17] <SuperTyp> timesheet is an array
[15:07:48] <SuperTyp> timesheet: Array<MyObject>;
[15:08:09] <SuperTyp> (or timesheet: MyObject[];)
[15:08:43] <SuperTyp> you also dont have to initialise it
[15:08:50] <Paradisee> why not?
[15:09:01] <SuperTyp> you can
[15:09:03] <SuperTyp> you dont have to
[15:09:13] <Paradisee> and how do you work with it
[15:09:15] <SuperTyp> becase it will be populated from your json
[15:09:18] <SuperTyp> because*
[15:09:22] <SuperTyp> see here
[15:09:25] <SuperTyp> line 20
[15:09:38] <SuperTyp> now click load something button again and check the console
[15:09:44] <SuperTyp> no you can iterate over timesheet
[15:10:01] <SuperTyp> using *ngFor="let item of timesheet"
[15:10:35] <SuperTyp> and then e.g. <div>{{item.time_in }}>/
[15:10:42] <SuperTyp> arghhh
[15:10:49] <SuperTyp> and then e.g. <div>{{item.time_in }}</div>
[15:12:06] <Paradisee> my pc is so slow
[15:12:27] <Paradisee> public timesheet: Array<MyObject>;
[15:12:42] <SuperTyp> brb
[15:12:43] <Paradisee> if it is an Array it would send data back as an array
[15:12:51] <Paradisee> it will mess up everything
[15:13:26] *** led_dark_1 <led_dark_1!~Thunderbi@hotspot10.rywasoft.net> has quit IRC (Quit: led_dark_1)
[15:14:45] *** ceterizine <ceterizine!~ceterizin@evergage03.e.subnet.rcn.com> has joined #angularjs
[15:16:48]
<Siecje> I updated from raven-js to sentry and the new code has an @Injectable() decorator. When I try to ng build I get this error https://dpaste.de/6OHe
[15:18:55] <SuperTyp> Paradisee: dont worry about that :)
[15:18:55] *** tarnus <tarnus!~tarnus@2600:1702:2611:5a50:d4ab:cfc8:362d:5436> has joined #angularjs
[15:19:15] <SuperTyp> we can map our POST body request when it's time for that
[15:19:29] <SuperTyp> but for now, lets try to visualize the data, are you ok with that?
[15:24:35] <SuperTyp> Siecje: are you sure it is because of the Injectable() decorator?
[15:24:58] <Siecje> SuperTyp: No, but I saw some reports that that was an issue with older versions of apollo.
[15:25:14] *** Mattch <Mattch!~mrichar1@w5430.see.ed.ac.uk> has quit IRC (Remote host closed the connection)
[15:26:11] *** Mattch <Mattch!~mrichar1@w5430.see.ed.ac.uk> has joined #angularjs
[15:26:21] <Paradisee> SuperTyp: ok.
[15:26:26] <Paradisee> i forgot to say another thing
[15:26:27] <SuperTyp> can you remove the decorator or the code and see if its working again?
[15:27:41] <Paradisee> this is the json
[15:28:07] <SuperTyp> no problem just extend the interface MyData with the fields
[15:28:20] <Paradisee> ok done
[15:29:26] <Paradisee> did you chagne the code?
[15:29:35] <Paradisee> each time i open a link i get freezed
[15:29:56] <Paradisee> stackblitz isnt cool for this notebook
[15:30:43] <SuperTyp> Paradisee: I did yes
[15:30:53] <Paradisee> ok
[15:31:27] <jlebrech> Paradisee: does you city have somewhere like a coffee shop (or co working space) where coders (freelancers) like to go? if your boss doesn't have someone to help you out you should do a "work from home" and spend the day there.
[15:31:44] <SuperTyp> jlebrech: good idea
[15:32:03] <Paradisee> jlebrech: no idea actually
[15:32:37] *** DanielKarp <DanielKarp!~textual@pool-71-163-164-178.washdc.fios.verizon.net> has joined #angularjs
[15:32:54] *** soee_ <soee_!~soee@afnl120.neoplus.adsl.tpnet.pl> has joined #angularjs
[15:32:57] *** greengriminal <greengriminal!~greengrim@toroon633vw-lp140-02-67-71-99-188.dsl.bell.ca> has joined #angularjs
[15:33:07] <jlebrech> Paradisee: join your local javascript user group :)
[15:33:24] <Paradisee> SuperTyp: ok i changed, that was like i did
[15:33:27] <Paradisee> anyway.
[15:33:42] <Paradisee> i made a button and a function to post the data
[15:33:51] <Paradisee> for now it just print them out, and that is correct
[15:33:59] <Paradisee> even the post works
[15:34:05] *** DanielKarp <DanielKarp!~textual@pool-71-163-164-178.washdc.fios.verizon.net> has quit IRC (Client Quit)
[15:34:08] *** greengriminal <greengriminal!~greengrim@toroon633vw-lp140-02-67-71-99-188.dsl.bell.ca> has quit IRC (Client Quit)
[15:34:16] <SuperTyp> did you just time travel? haha
[15:34:41] <SuperTyp> Paradisee: so what is missing?
[15:35:01] <Paradisee> well, it prints the timesheet, but not the whole json
[15:35:18] <Paradisee> that i actually need for the api, otherwise it throws me an error
[15:35:54] *** blinky42 <blinky42!~quassel@jabber.blinkylight.net> has joined #angularjs
[15:36:24] <SuperTyp> so printing the data and sending it back to the BE are two different things
[15:36:50] <Paradisee> i already have a working code
[15:36:57] *** DanielKarp <DanielKarp!~textual@pool-71-163-164-178.washdc.fios.verizon.net> has joined #angularjs
[15:37:03] <SuperTyp> do you want to alter the data and send it to the BE?
[15:37:06] <Paradisee> the whole code you wrote was working for me
[15:37:25] <Paradisee> i mean, i already had all working in my way, but pretty suck everything
[15:37:34] <Paradisee> now with your is way better
[15:37:49] <Paradisee> SuperTyp: yes, i need to alter the data, since i need some other informations left behind
[15:38:11] <Paradisee> has to be something like this
[15:38:24] <Paradisee> the backend accept a year, month, user_id and a timesheet
[15:42:52] <SuperTyp> and you want a form where you can enter this data right?
[15:43:03] <SuperTyp> so we are on a good way
[15:43:09] <SuperTyp> lets create the template, alright?
[15:43:25] *** soee_ <soee_!~soee@afnl120.neoplus.adsl.tpnet.pl> has quit IRC (Remote host closed the connection)
[15:44:32] *** soee_ <soee_!~soee@afnl120.neoplus.adsl.tpnet.pl> has joined #angularjs
[15:44:38] <Paradisee> i already created a template
[15:44:42] <Paradisee> gonna show you
[15:48:53] *** Robin___ <Robin___!~Damien@535319D9.cm-6-4a.dynamic.ziggo.nl> has quit IRC (Quit: Leaving)
[15:49:38] <SuperTyp> check
[15:49:41] <SuperTyp> looks good no?
[15:51:57] <ray02> SuperTyp: sexy :d
[15:52:25] *** amitkm9204 <amitkm9204!~androirc@2405:204:4288:5adc:1089:a833:98e9:397d> has quit IRC (Remote host closed the connection)
[15:52:36] *** amitkm9204 <amitkm9204!~androirc@2405:204:4288:5adc:1089:a833:98e9:397d> has joined #angularjs
[15:53:00] <Paradisee> SuperTyp: YA
[15:53:56] *** mosulica <mosulica!~textual@i88.assist.ro> has quit IRC (Ping timeout: 240 seconds)
[15:54:03] <SuperTyp> thx Pyrrhus666
[15:57:50] <Paradisee> SuperTyp: basically i just need to modify the whole json to send back to the be
[15:59:58] <SuperTyp> ok now see this
[16:00:06] <SuperTyp> click on load something button
[16:00:13] <SuperTyp> you will see the json below the table
[16:00:41] <SuperTyp> now modify some data by entering text in any input
[16:00:43] <SuperTyp> what do you see?
[16:03:00] <SuperTyp> Paradisee: ?
[16:03:07] <Paradisee> SuperTyp: i already did all this part
[16:03:12] <Paradisee> anyway it works
[16:03:32] <SuperTyp> I wanted to show you how ngModel works =(
[16:03:38] <Paradisee> yeah i know :d
[16:03:47] <Paradisee> now is more clear than before for sure
[16:04:06] <SuperTyp> and that you dont have to do anything more than just set your data together and send it to the BE
[16:04:26] <Paradisee> ya, i end up with the solution this morning
[16:04:55] <Paradisee> i would like to remove the interfaces in my component.ts
[16:05:02] <Paradisee> and put them somewhere else
[16:05:07] <SuperTyp> yes do so
[16:05:20] <SuperTyp> create a directory where your component is called "model"
[16:05:24] <Paradisee> should i make a new directory?
[16:05:25] <Paradisee> ok
[16:05:34] <SuperTyp> and put them there with the name: "my-data.interface.ts"
[16:05:42] <SuperTyp> and my-object.interface.ts
[16:06:46] <SuperTyp> In the following example, the optional, injected UserServiceConfig extends the core UserService. If a UserServiceConfig exists, the UserService sets the user name from that config.
[16:06:52] <SuperTyp> ^ Mylee
[16:07:12] <SuperTyp> Mylee: not sure if I udnerstood your question though
[16:07:18] <SuperTyp> my head burns :D
[16:07:34] <Mylee> thanks SuperTyp, so i should extend the userService with UserServiceConfig?
[16:07:56] *** soee_ <soee_!~soee@afnl120.neoplus.adsl.tpnet.pl> has quit IRC (Remote host closed the connection)
[16:08:01] *** exonity01 <exonity01!2e059f99@gateway/web/freenode/ip.46.5.159.153> has joined #angularjs
[16:08:29] <SuperTyp> UserServiceConfig extends UserService
[16:09:30] <Paradisee> i just need to put the proper json
[16:09:46] <Mylee> I think I am getting it, the page is not very clear on where userServiceConfig comes from. I thought I started with UserServer and extend UserServiceConfig
[16:09:51] <Paradisee> since timesheet its not the only part i need to send back to the server
[16:09:58] <Mylee> let me do it
[16:10:02] <Mylee> thanks SuperTyp
[16:10:27] <SuperTyp> Mylee: I didnt read the whole section but I think they want to show you how to use optional decorator
[16:11:33] <SuperTyp> Paradisee: here is a technique you can use
[16:11:34] <SuperTyp> 1 sec
[16:11:52] *** soee_ <soee_!~soee@afnl120.neoplus.adsl.tpnet.pl> has joined #angularjs
[16:12:03] <Mylee> I got it SuperTyp! "export class CcServiceConfig extends UserService {" intellisense helped
[16:13:19] <Mylee> wait, I forgot I already have a UserService for another purpose...
[16:13:29] <Paradisee> we made an interface too, mydata
[16:14:51] *** OnceMe <OnceMe!~OnceMe@unaffiliated/onceme> has quit IRC (Remote host closed the connection)
[16:14:57] <SuperTyp> there you go
[16:15:24] <SuperTyp> Mylee: what are you trying to achieve?
[16:17:27] *** s2013 <s2013!~textual@cpe-72-226-62-58.nyc.res.rr.com> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)
[16:18:02] <Pyrrhus666> SuperTyp is today´s MVP :)
[16:18:03] <jlebrech> vue single file components are great :) took me 20 minutes to figure out to declare vue components tho.
[16:18:37] <SuperTyp> Pyrrhus666: well had to catch up, was off long time :P
[16:18:37] <Mylee> uh huh Pyrrhus666
[16:19:30] <Pyrrhus666> jlebrech, funny, most people loathe the one-file thing (I like it though)
[16:19:38]
<exonity01> Is it possible to add an action on result on an observable from HttpClient? I mean, if anybody subscribes my observable they can do anything with it and I want do an action, too. https://qbin.io/vip-fg-6k2l
[16:20:22] <ray02> jlebrech: personally i found it confusing
[16:20:24] <Pyrrhus666> jlebrech, hehe, good one indeed :)
[16:20:30] <Mylee> google uses angular, it is futile to resist them
[16:20:43] <SuperTyp> exonity01: use .pipe(tap(() => { // do something after the subscription }))
[16:20:49] <exonity01> Thanks!
[16:20:57] *** {DV8} <{DV8}!~Deviate@135-23-85-110.cpe.pppoe.ca> has joined #angularjs
[16:21:01] <SuperTyp> exonity01: angular version=?
[16:21:09] <exonity01> 7.*
[16:21:12] <Pyrrhus666> Mylee, I think the example is a bit overkill. you probably just need a ThingService that holds a single entity of type Thing.
[16:21:23] <jlebrech> Pyrrhus666: one concern, one file rather than having vscode 10 tabs open at once
[16:21:33] <Pyrrhus666> 10 ? amateur :P
[16:22:04] * Pyrrhus666 counts 47 now.
[16:22:08] <SuperTyp> Mylee: thats what I wanted to tell you :)
[16:22:37] <jlebrech> i like the idea of not having to scroll for a component, 200 lines should be enough for anyone :P
[16:22:37] <Mylee> thanks Pyrrhus666, since they do not show what import { UserServiceConfig } from './user.service';, userserviceconfig is
[16:22:56] <Pyrrhus666> Mylee, it´s not meant as a complete example though
[16:23:04] <Mylee> thanks SuperTyp, mist be true
[16:23:12] <Mylee> I see that now Pyrrhus666
[16:23:42] <Mylee> great to not use the config, it may come to me later was the use of it
[16:23:50] <SuperTyp> Mylee: you just want a singleton service?
[16:24:01] <Mylee> yes SuperTyp
[16:24:22] <Mylee> it helps that I can igore the config for now
[16:24:30] <SuperTyp> ok, any questions?
[16:24:32] <Mylee> ignore too
[16:24:48] <Mylee> not right now, thanks for your precious time
[16:24:56] <SuperTyp> yw =)
[16:25:28] *** {DV8} <{DV8}!~Deviate@135-23-85-110.cpe.pppoe.ca> has quit IRC (Ping timeout: 245 seconds)
[16:25:31] <Mylee> SuperTyp, are you in switzerland?
[16:25:35] <SuperTyp> yes
[16:25:56] <stennowork> gruezi
[16:25:57] <Mylee> I got to spend a week when i worked for Fiat, beautiful place
[16:26:09] <Mylee> near Zurich, hour train ride
[16:26:31] <Mylee> I got on the wrong train once, it said the train comes at 5:25, I got on the train that was 5:23
[16:27:13] <Mylee> all of the software was done in Fiat switzerland
[16:27:15] <SuperTyp> I see
[16:27:55] <SuperTyp> but the landscape is so nice, so traveling by train is kind of fun
[16:28:06] <Mylee> I asked one colleague, 'why doesn't swiss compromise and use english as one language' he said the four languages was the compromise
[16:28:13] <Mylee> I loved every minute of it
[16:28:37] <Mylee> I stayed in a hotel a mile from work near a river, I walked to work
[16:30:37] <SuperTyp> a mile?
[16:30:42] <SuperTyp> where are you from? :)
[16:31:02] <Mylee> this was when I stayed in Switzerland for a week, not now
[16:31:12] <Mylee> I am from Chicago
[16:31:17] <SuperTyp> ah thats why
[16:31:28] *** al-damiri <al-damiri!uid142631@gateway/web/irccloud.com/x-fjbsksgaisbcbkku> has joined #angularjs
[16:32:01] <SuperTyp> I was wondering about the imperial system you use :P
[16:32:18] <Mylee> yeah, US messed up, eveyone else uses km
[16:32:54] <Mylee> wherever I went, they took the US dollar
[16:33:18] <Mylee> maybe not anymore eh
[16:33:55] <Mylee> canada, switzerland and other countries have a happier society than the US
[16:36:55] *** Tazmain <Tazmain!~Tazmain@unaffiliated/tazmain> has quit IRC (Remote host closed the connection)
[16:37:21] <Pyrrhus666> of course kelvin is the one true scale here.
[16:37:27] *** {DV8} <{DV8}!~Deviate@135-23-85-110.cpe.pppoe.ca> has joined #angularjs
[16:38:05] <Paradisee> SuperTyp: there's a problem.
[16:38:18] <Paradisee> SuperTyp: like i said bfore, i get a strange json with double [[
[16:38:22] <Paradisee> {"timesheet": [[{"assignments":
[16:38:27] <SuperTyp> Pyrrhus666: I saw this just yesterday haha
[16:38:30] <Paradisee> that's what i mean bofre
[16:38:32] <Paradisee> before
[16:38:35] <Pyrrhus666> SuperTyp, me too ;)
[16:38:37] *** Elarcis <Elarcis!~Elarcis@154.125.224.35.bc.googleusercontent.com> has quit IRC (Quit: WeeChat 1.4)
[16:39:16] <SuperTyp> Paradisee: where do you get this?
[16:39:27] <Paradisee> in the json i create
[16:39:28] <Paradisee> in the post
[16:39:35] <Paradisee> or even if i print out
[16:40:46] *** parasite <parasite!~Parasite@11.81-166-238.customer.lyse.net> has joined #angularjs
[16:41:04] <Pyrrhus666> so now it´s not just an array, but a nested array ?
[16:41:40] <Paradisee> ye
[16:41:42] *** max_at <max_at!~max_at@unaffiliated/max-at/x-2708233> has quit IRC (Read error: Connection reset by peer)
[16:45:01] <Paradisee> told you
[16:45:17] *** s2013 <s2013!~textual@cpe-72-226-62-58.nyc.res.rr.com> has joined #angularjs
[16:49:33] *** graingert <graingert!sid128301@gateway/web/irccloud.com/x-fbscqdivsnhouuqw> has left #angularjs
[16:50:04] <SuperTyp> check the flex
[16:50:16] <SuperTyp> click on load something
[16:50:20] <SuperTyp> then click on send time sheet
[16:50:23] <SuperTyp> check the console
[16:50:41] <SuperTyp> when you do it like I showed you in the mock service I created here
[16:51:14] <SuperTyp> this shows you how to create the payload that you send to your BE
[16:52:50] <SuperTyp> of course instead of overloading the parameters just pass timesheet and mydata to the sendData function and handle it further there
[16:56:56] *** Pyrrhus666 <Pyrrhus666!~Pyrrhus66@157.97.112.115> has quit IRC (Ping timeout: 240 seconds)
[16:59:52] <Paradisee> SuperTyp: same problem
[17:00:02] <Paradisee> i actually have to go, ill work on it tomorrow
[17:00:12] <Paradisee> thank you a lot SuperTyp! i really appreciated your help!
[17:00:23] <Paradisee> and of everyone else here trying out
[17:01:49] <Mylee> I just realized, I do not need to create a module.ts for my singleton service like the page I am looking it does
[17:02:25] <Mylee> SuperTyp, what time it is in Swiss? it is 10 am in chi town
[17:02:39] <SuperTyp> 5 pm
[17:02:53] <Mylee> time to call it a work day there
[17:03:00] <SuperTyp> yw Paradisee
[17:03:05] <SuperTyp> have a nice evening
[17:03:17] <SuperTyp> Mylee: yea :D
[17:03:21] <Mylee> glad I get up early to see action in the channel
[17:03:23] *** soee_ <soee_!~soee@afnl120.neoplus.adsl.tpnet.pl> has quit IRC (Ping timeout: 245 seconds)
[17:04:42] *** EREVAN <EREVAN!~aaa@87.241.143.42> has joined #angularjs
[17:06:18] *** AtumT <AtumT!~IRC@177.43.144.189.dynamic.adsl.gvt.net.br> has joined #angularjs
[17:07:33] <ray02> ahah like a show :)
[17:08:29] *** Paradisee <Paradisee!~quassel@net77-43-18-082.mclink.it> has quit IRC (Remote host closed the connection)
[17:09:38] <ray02> it's strange that there is not so many ppl active from other par of the world
[17:09:57] <Mylee> not at all ray02, great on the europeans
[17:11:14] <ray02> maybe becase slack is more popular and here in IRC we are more nostalgic?
[17:11:19] <ray02> *becuse
[17:11:22] <ray02> *because
[17:14:02] <ansu> Slack and also that Gitter stuff, tho not sure if anyone uses it.
[17:15:28] <ansu> I remember tho when AngularJS had its peak popularity this channel regularly had ~800 users.
[17:15:55] <ray02> i'm wondering if there are some data to visualize about the channel
[17:16:44] *** s2013 <s2013!~textual@cpe-72-226-62-58.nyc.res.rr.com> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)
[17:21:40] <ray02> interesting
[17:22:53] <ray02> i would like to use this things in some way
[17:23:07] <ray02> i will think about it :d
[17:49:09] *** DanielKarp <DanielKarp!~textual@pool-71-163-164-178.washdc.fios.verizon.net> has quit IRC (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
[17:52:32] *** mosulica <mosulica!~textual@79.112.169.1> has joined #angularjs
[17:54:54] *** s2013 <s2013!~textual@cpe-72-226-62-58.nyc.res.rr.com> has joined #angularjs
[18:01:13] *** icebox <icebox!~nodebot@213.215.204.90> has quit IRC (Read error: Connection reset by peer)
[18:01:27] *** DanielKarp <DanielKarp!~textual@pool-71-163-164-178.washdc.fios.verizon.net> has joined #angularjs
[18:02:36] *** mosulica <mosulica!~textual@79.112.169.1> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)
[18:12:09] <SuperTyp> bye all
[18:16:24] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has quit IRC (Remote host closed the connection)
[18:19:21] *** SuperTyp <SuperTyp!~SuperTyp@15.5.3.213.static.wline.lns.sme.cust.swisscom.ch> has quit IRC ()
[18:22:42] *** EREVAN <EREVAN!~aaa@87.241.143.42> has quit IRC (Ping timeout: 246 seconds)
[18:31:55] *** voltron <voltron!~voltron@98.187.3.13> has joined #angularjs
[18:35:15] *** DanielKarp <DanielKarp!~textual@pool-71-163-164-178.washdc.fios.verizon.net> has quit IRC (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
[18:37:53] <anddam> can I style a MatTable columns' width?
[18:38:20] <anddam> I cannot find a reference for this on material.angular.io or the web in general
[18:38:28] <anddam> way too many results for angularjs around
[18:39:15] *** DanielKarp <DanielKarp!~textual@pool-71-163-164-178.washdc.fios.verizon.net> has joined #angularjs
[18:43:02]
<exonity01> Can you take a look on my service and tell me what you think about the code? I created 3 simple components. With the first you can select a "person" and component 2 and 3 are showing these person. https://stackblitz.com/edit/angular-irc-starter-q6hgdf
[18:45:13] <exonity01> @anddam: Couldn't you set a width with css on the <mat-header-cell>?
[18:50:24] <anddam> exonity01: can I?
[18:50:43] *** Bacteria <Bacteria!~irssi@upldz.com> has joined #angularjs
[18:50:44] <anddam> material seems to not appreciate my style attempts, but I don't have an SSCCE for this case
[18:51:08] <anddam> I was wondering if there was something in the selector argument to tell the column importance or so
[18:51:22] *** DanielKarp <DanielKarp!~textual@pool-71-163-164-178.washdc.fios.verizon.net> has quit IRC (Quit: Textual IRC Client: www.textualapp.com)
[18:51:30] <exonity01> Sry I don't know about this.
[18:58:35] *** gongor <gongor!~gongor@nerdsinthevoid.com> has quit IRC (Quit: leaving)
[19:04:25] *** AndrewIsh <AndrewIsh!~andrew@mrboom.plus.com> has quit IRC (Remote host closed the connection)
[19:07:06] *** s2013 <s2013!~textual@cpe-72-226-62-58.nyc.res.rr.com> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)
[19:07:30] *** replay <replay!~replay@pdpc/supporter/student/replay> has joined #angularjs
[19:10:57] *** XsiSec <XsiSec!~xsisec@2a07-a880-4401-1012-12a9-c361-5d6f-f24a.pool6.ovpn.com> has quit IRC (Remote host closed the connection)
[19:16:54] *** s2013 <s2013!~textual@cpe-72-226-62-58.nyc.res.rr.com> has joined #angularjs
[19:17:10] *** s2013 <s2013!~textual@cpe-72-226-62-58.nyc.res.rr.com> has quit IRC (Client Quit)
[19:23:57] *** EREVAN <EREVAN!~aaa@87.241.143.42> has joined #angularjs
[19:24:34] *** ceterizi_ <ceterizi_!~ceterizin@evergage03.e.subnet.rcn.com> has joined #angularjs
[19:27:05] *** ceterizi_ <ceterizi_!~ceterizin@evergage03.e.subnet.rcn.com> has quit IRC (Remote host closed the connection)
[19:27:41] *** ceterizi_ <ceterizi_!~ceterizin@evergage03.e.subnet.rcn.com> has joined #angularjs
[19:28:44] *** ceterizine <ceterizine!~ceterizin@evergage03.e.subnet.rcn.com> has quit IRC (Ping timeout: 268 seconds)
[19:29:46] *** stennowork <stennowork!~stenno@unaffiliated/chao> has quit IRC (Quit: Leaving)
[19:32:01] *** mosulica <mosulica!~textual@79.112.169.1> has joined #angularjs
[19:38:38] *** mosulica <mosulica!~textual@79.112.169.1> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)
[19:52:33] *** parsnip <parsnip!~parsnip@unaffiliated/parsnip> has quit IRC (Ping timeout: 245 seconds)
[19:52:35] *** exonity01 <exonity01!2e059f99@gateway/web/freenode/ip.46.5.159.153> has quit IRC (Ping timeout: 256 seconds)
[19:57:39] *** Triangular <Triangular!~tri@5.179.64.99> has joined #angularjs
[19:59:03] *** Triangular <Triangular!~tri@5.179.64.99> has quit IRC (Remote host closed the connection)
[20:01:51] *** al-damiri <al-damiri!uid142631@gateway/web/irccloud.com/x-fjbsksgaisbcbkku> has quit IRC (Quit: Connection closed for inactivity)
[20:04:46] *** Aquazi <Aquazi!uid312403@gateway/web/irccloud.com/x-bmmgsyhytnzszowy> has quit IRC (Quit: Connection closed for inactivity)
[20:05:16] *** doggo <doggo!~theology@unaffiliated/theology> has joined #angularjs
[20:17:11] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has joined #angularjs
[20:20:23] *** ceterizine <ceterizine!~ceterizin@evergage03.e.subnet.rcn.com> has joined #angularjs
[20:20:33] *** ceterizine <ceterizine!~ceterizin@evergage03.e.subnet.rcn.com> has quit IRC (Remote host closed the connection)
[20:21:06] *** ceterizine <ceterizine!~ceterizin@evergage03.e.subnet.rcn.com> has joined #angularjs
[20:22:24] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has quit IRC (Ping timeout: 246 seconds)
[20:23:48] *** ceterizi_ <ceterizi_!~ceterizin@evergage03.e.subnet.rcn.com> has quit IRC (Ping timeout: 245 seconds)
[20:31:07] *** ansu <ansu!uid195109@gateway/web/irccloud.com/x-kgsxpjwcamxihusy> has quit IRC (Quit: Connection closed for inactivity)
[20:34:34] *** max_at <max_at!~max_at@unaffiliated/max-at/x-2708233> has joined #angularjs
[20:38:39] *** ravenousmoose <ravenousmoose!~Textual@ptr-cud5aqgcfv2pd0h2mm8.18120a2.ip6.access.telenet.be> has joined #angularjs
[20:39:13] *** Paradisee <Paradisee!~quassel@2.239.28.120> has joined #angularjs
[20:39:48] <Paradisee> hey o/
[21:03:23] *** Mattch <Mattch!~mrichar1@w5430.see.ed.ac.uk> has quit IRC (Ping timeout: 245 seconds)
[21:16:49] *** Paradisee <Paradisee!~quassel@2.239.28.120> has quit IRC (Read error: Connection reset by peer)
[21:22:43] *** pmercado <pmercado!~pmercado@179.9.251.27> has joined #angularjs
[21:33:02] *** Elisha <Elisha!~elisha@188-230-142-97.dynamic.t-2.net> has joined #angularjs
[21:41:47] *** doggo <doggo!~theology@unaffiliated/theology> has quit IRC (Ping timeout: 250 seconds)
[21:55:00] *** ray02 <ray02!~ray@78.192.34.122> has quit IRC (Read error: Connection reset by peer)
[21:55:06] *** ray021 <ray021!~ray@78.192.34.122> has joined #angularjs
[21:56:54] *** ray021 <ray021!~ray@78.192.34.122> has quit IRC (Client Quit)
[22:05:08] *** pmercado <pmercado!~pmercado@179.9.251.27> has quit IRC (Ping timeout: 250 seconds)
[22:17:18] *** max_at <max_at!~max_at@unaffiliated/max-at/x-2708233> has quit IRC (Remote host closed the connection)
[22:18:27] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has joined #angularjs
[22:19:33] *** ravenousmoose <ravenousmoose!~Textual@ptr-cud5aqgcfv2pd0h2mm8.18120a2.ip6.access.telenet.be> has quit IRC (Quit: Taking a quick nap...ZZzzz)
[22:22:48] *** jlebrech <jlebrech!~jlebrech@89.165.136.2> has quit IRC (Ping timeout: 246 seconds)
[22:23:10] *** Siecje <Siecje!~cody@72.137.166.82> has left #angularjs
[22:37:14] *** CitizenX_ <CitizenX_!~CitizenX@180-150-50-232.b49632.mel.nbn.aussiebb.net> has joined #angularjs
[22:38:40] *** _Penguin <_Penguin!~penguin@host86-134-229-131.range86-134.btcentralplus.com> has quit IRC (Ping timeout: 246 seconds)
[22:41:52] *** AmVarPG <AmVarPG!~amvarpg@206-51-157-20.nktelco.net> has quit IRC (Remote host closed the connection)
[22:42:11] *** AmVarPG <AmVarPG!~amvarpg@206-51-157-20.nktelco.net> has joined #angularjs
[22:42:33] *** _Penguin <_Penguin!~penguin@host81-158-164-187.range81-158.btcentralplus.com> has joined #angularjs
[22:56:31] *** AmVarPG <AmVarPG!~amvarpg@206-51-157-20.nktelco.net> has quit IRC (Remote host closed the connection)
[22:57:02] *** metrixx_ <metrixx_!~metrixx@unaffiliated/metrixx> has quit IRC (Ping timeout: 244 seconds)
[23:01:00] *** AmVarPG <AmVarPG!~amvarpg@206-51-157-20.nktelco.net> has joined #angularjs
[23:03:14] *** _Penguin <_Penguin!~penguin@host81-158-164-187.range81-158.btcentralplus.com> has quit IRC (Ping timeout: 244 seconds)
[23:04:01] *** _Penguin <_Penguin!~penguin@host86-152-19-83.range86-152.btcentralplus.com> has joined #angularjs
[23:04:08] *** EREVAN <EREVAN!~aaa@87.241.143.42> has quit IRC ()
[23:05:07] *** AmVarPG <AmVarPG!~amvarpg@206-51-157-20.nktelco.net> has quit IRC (Ping timeout: 240 seconds)
[23:06:04] *** AmVarPG <AmVarPG!~amvarpg@206-51-132-218.nktelco.net> has joined #angularjs
[23:07:44] *** CitizenX_ <CitizenX_!~CitizenX@180-150-50-232.b49632.mel.nbn.aussiebb.net> has quit IRC (Ping timeout: 268 seconds)
[23:29:18] *** doggo <doggo!~theology@unaffiliated/theology> has joined #angularjs
[23:37:12] *** AtumT <AtumT!~IRC@177.43.144.189.dynamic.adsl.gvt.net.br> has quit IRC (Quit: AtumT)
[23:38:14] *** s2013 <s2013!~textual@cpe-72-226-62-58.nyc.res.rr.com> has joined #angularjs
[23:43:57] *** kirua <kirua!~kirua@unaffiliated/kirua> has joined #angularjs
[23:49:27] *** kirua <kirua!~kirua@unaffiliated/kirua> has quit IRC (Quit: Going offline, see ya! (www.adiirc.com))
[23:50:05] *** s2013 <s2013!~textual@cpe-72-226-62-58.nyc.res.rr.com> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)
[23:55:09] *** Alina-malina <Alina-malina!~Alina-mal@unaffiliated/alina-malina> has joined #angularjs
[23:55:09] *** Zeioth <Zeioth!~Zeioth@92.59.21.14> has quit IRC (Read error: Connection reset by peer)
[23:55:27] *** Zeioth <Zeioth!~Zeioth@92.59.21.14> has joined #angularjs
[23:58:49] *** AmVarPG <AmVarPG!~amvarpg@206-51-132-218.nktelco.net> has quit IRC (Remote host closed the connection)