News for hackers. Stuff that matters.
Re:Angular 2 – Best Practises by laurencei on Monday June 27, 2016 @07:50AM (#11985550)
One specific reason I am personally choosing Angular 2, is that the Ionic2 Framework also uses Angular 2 [0].

So I can re-use code from my front end website on my native mobile apps for the new startup I'm launching. Much less code = quicker time to MVP, and lower cost of development.

[0] http://blog.ionic.io/angular-2-ionic/

Re:Angular 2 – Best Practises by mbesto on Monday June 27, 2016 @10:43AM (#11986444)
> So I can re-use code from my front end website on my native mobile apps for the new startup I'm launching.

Just to be clear, Ionic is _not_ native.

Re:Angular 2 – Best Practises by mkolodny on Monday June 27, 2016 @02:25PM (#11988267)
While Ionic's not native, even Ionic 1 is close enough for most apps. Ionic 2 is supposed to be 3-5 times faster. So for startups that need both iOS and Android support, but have small teams, Ionic's 100% iOS-Android code reuse remakes a lot of sense.
Re:Angular 2 – Best Practises by petetnt on Monday June 27, 2016 @07:55AM (#11985564)
Have you tried React with React Native[0]?

[0] https://facebook.github.io/react-native/

Re:Angular 2 – Best Practises by Secretmapper on Monday June 27, 2016 @08:22AM (#11985683)
BTW to parent, one big advantage of react-native over ionic is that it's not a wrapped web app, but a javascript/react app that compiles to an actual native app.

The performance difference and development experience (no silly css hacks) is very noticeable.

Re:Angular 2 – Best Practises by nbclark on Monday June 27, 2016 @09:42AM (#11986088)
Not to nitpick, but I don't believe react native "compiles" to a native app. The evaluation of the JS in JavaScript Core is passed of to native code to layout native views. The interactions are then posted back into jscore. So while closer to native compiled code performance, it's still a bit different.
Re:Angular 2 – Best Practises by Secretmapper on Monday June 27, 2016 @12:34PM (#11987303)
Fair enough, I'm afraid I didn't explain it properly
Re:Angular 2 – Best Practises by madeofpalk on Monday June 27, 2016 @08:23AM (#11985685)
In my experience code-share between React and React Native is extremely difficult as your UI code is so significantly different with native components and what not.

At least with Angular/Ionic you can directly share UI code between the two as its all HTML and CSS.

Still, I really enjoy working with React and React Native because I it's one API and mental model to learn.

Re:Angular 2 – Best Practises by lacker on Tuesday June 28, 2016 @01:12AM (#11991613)
You might want to check out https://github.com/necolas/react-native-web - that has implementations for a lot of the React Native primitives on the web, to make code-sharing easier.
Re:Angular 2 – Best Practises by Secretmapper on Monday June 27, 2016 @12:35PM (#11987314)
Have you tried it recently? I don't think I've had this problem with recent versions.
Re:Angular 2 – Best Practises by pbhowmic on Monday June 27, 2016 @10:57AM (#11986543)
As did I and for the same exact reasons. I am the only dev on the project (it is a startup) and we need to get to MVP fast.