Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Kaz Baig
@kbaig
@mbosnjak01 AFAIK Angular 1.x has nothing to do with Angular. It's really up to personal preference if you're doing it for your own projects. If you have career motives for learning one or the other, those might drive your decision
Tom
@moT01
im not sure on this - but i think react is becoming more popular - so maybe go that route
Kaz Baig
@kbaig
@mbosnjak01 If it's just for personal projects, I guess it would be helpful for you to know that React is a view library so you're likely going to have to incorporate other packages to get the full functionality you want, whereas Angular is a full framework and you will rarely have to venture out of it to get what you need
Matej Bošnjak
@mbosnjak01
@kbaig Both personal stuff and carrer :)
Kaz Baig
@kbaig
This also means that React can be easier to pick up than Angular since there's less to learn. But it's kind of apples to oranges in that you still would have to pick up some other stuff if you learn React
Additionally, some people take issue with the use of JSX in React (I love it) and also appreciate the control TypeScript gives you
Matej Bošnjak
@mbosnjak01
Can Those stacks be implemented on mobile apps as well?
Stephen James
@sjames1958gm
@mbosnjak01 I'll second what @kbaig is saying. I would go with MERN and then maybe learn Angular later.
Kaz Baig
@kbaig
TLDR: If you want to work in enterprise, probably Angular. In most other cases, I'd say React. Obviously Vue is a thing too
Both Angular and React have native mobile frameworks, though I think the React one is quite a bit more popular
Stephen James
@sjames1958gm
@mbosnjak01 There is React Native that can be used for mobile, which uses most of the same concepts as web React
Kaz Baig
@kbaig
React Native and NativeScript
Matej Bošnjak
@mbosnjak01
Vue looks like a combination of angular and react to me XD
Kaz Baig
@kbaig
That's not particularly wrong
Tom
@moT01
@1532j0004kg if you're still working on the new repo - you will want to change your package.json to use index.js instead of server.js
dinesh
@1532j0004kg
oh ok
Marco Galizzi
@Tezenn
hello everyone, is it possible to have a onclikc function to comment/uncomment part of my code?
Kaz Baig
@kbaig
The creator is a former Google employee who took issue with Angular's learning curve and mundanity, so he took a little of both in consideration when making Vue
@mbosnjak01
@Tezenn not sure what you mean
Tom
@moT01
not to uncomment that i know of
proka89
@proka89
How can i add data from JSON (something like data[i].name) in to <input> field value attribute, something like value="data[i].name". Is it even possible?
Kaz Baig
@kbaig
@proka89 sure you can. You can select it using document.getElementById or some other similar method and set that DOM node's value property to whatever you want
Tom
@moT01
just put the code you want to execute in the click event @Tezenn would be the way to do it i would think
Kaz Baig
@kbaig
Marco Galizzi
@Tezenn
@kbaig ok i'm trying to merge the human vs human and the human vs ai tic tac toe that are two projects.. an easy way would be comment the part i dont need when click hum vs hum
maybe is too easy like this
Matej Bošnjak
@mbosnjak01
Looks like I'll go for React first, then Angular ... Vue looks nice but that might come latter, but I doubt it. Thanks for the info @kbaig @sjames1958gm @moT01
CamperBot
@camperbot
mbosnjak01 sends brownie points to @kbaig and @sjames1958gm and @mot01 :sparkles: :thumbsup: :sparkles:
:cookie: 554 | @kbaig |http://www.freecodecamp.org/kbaig
:star2: 8898 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
:cookie: 966 | @mot01 |http://www.freecodecamp.org/mot01
Kaz Baig
@kbaig
@Tezenn the right way to do it would be to just have an if/else statement based on which mode the user chooses
Tom
@moT01
@mbosnjak01 freecodecamp beta has some react exercises
it's not working :worried:
Matej Bošnjak
@mbosnjak01
@moT01 Yes, I might try them out, although I am completely fine with raw documentation as well :D
Marco Galizzi
@Tezenn
@kbaig yes i will follow the proper way ;)
Tom
@moT01
not quite sure what the problem is - the database for sure wont work yet - im looking
@1532j0004kg
dinesh
@1532j0004kg
ok tnx !
Tom
@moT01
there's a way to invite me to edit - click my little logo there and try and find it
dinesh
@1532j0004kg
:+1:
Stephen James
@sjames1958gm
@camperbot :+1:
maayoko
@maayoko
Hi, is anybody here doing server side rendering? How do you guys render css on server? How to extract wanted styles from css and inject them in html's style tag (I'm asking this because I'm using semantic-ui-css and there is a lot of css files)
VaseJS
@VaseJS
@maayoko you can’t render css on the server side. its a browser thing. you may produce code that is delieverd with css in place, but it thats not the same thing as rendering css on the server. to the server, css is just more code that it doesn’t know what to do with other than send it somewhere…the browser.
Aryan J
@AryanJ-NYC
@maayoko What are you using? I've done SSR.
iceveda06
@iceveda06
Its been awhile since i got brownie points
@maayoko for ex: if you have ruby on rails.. you would put your css and html into a specific folder so when user requests your files it will get served
Depending on the page