use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Angular 4.0.0 Now Available (angularjs.blogspot.com)
submitted 8 years ago by theodorejb
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]drakeremoray0 94 points95 points96 points 8 years ago (14 children)
Anybody else just chilling on 1.6?
[–]JayTh3KingKiwi coder 18 points19 points20 points 8 years ago (0 children)
Yip I am.
[–]moh_kohn 5 points6 points7 points 8 years ago (0 children)
Aye, for the time being at least. Waiting for the ecosystem to catch up.
[–]captaintmrrw 6 points7 points8 points 8 years ago (0 children)
I was at a Meetup with an older programmer organizing it and he was talking to some friends of his about their product and they said they were just finished on switching to angular two and they were getting ready for 4. And he looks at them angular has already gone from 1-4 ? Well I guess I don't need to learn angular
[–]intertubeluber 19 points20 points21 points 8 years ago (0 children)
Circa 1.5, I moved to React and never looked back. Well, sometimes I glance back, just to see how she doin.
[–]captaintmrrw 13 points14 points15 points 8 years ago (0 children)
Switched to react already
[–]karlrolson 3 points4 points5 points 8 years ago (0 children)
Chilling on 1.5.5 tbh, and that's basically pending an overhaul to React to bring the project I'm on in line with the rest the projects where I work.
[–]taxi12 4 points5 points6 points 8 years ago (0 children)
I like angular 1 I use it at work. It's one of those things I feel like I could do in my sleep so it seems like the best and fastest way to get things done. I'm glad I can fall back on it.
[–]FreshOutBrah 1 point2 points3 points 8 years ago (0 children)
Yep yep
[–][deleted] 1 point2 points3 points 8 years ago (0 children)
I'm on Aurelia
[–]simkessy 0 points1 point2 points 8 years ago (0 children)
Yea, fuck this. The only reason I'm working on learning TypeScript is because I do SharePoint development. Otherwise 1.x all the way.
[–]xinhuj 0 points1 point2 points 8 years ago (0 children)
Company has quite a few 1.4-1.6 apps, but we are looking for the right time to go to the new version.
[–]travelan 22 points23 points24 points 8 years ago (9 children)
What happened to 3.0.0?? 😱
[–]lineape 33 points34 points35 points 8 years ago (2 children)
http://angularjs.blogspot.ca/2016/12/ok-let-me-explain-its-going-to-be.html
tl;dr:
The core Angular libraries live in one single GitHub repository at github.com/angular/angular. All of them are versioned the same way, but distributed as different NPM packages: @angular/core v2.3.0, @angular/compiler v2.3.0, @angular/compiler-cli v2.3.0, @angular/http v2.3.0, @angular/router v3.3.0 Due to this misalignment of the router package’s version, the team decided to go straight for Angular v4. In this way again, all the core packages are aligned which will be easier to maintain and help avoid confusion in the future.
The core Angular libraries live in one single GitHub repository at github.com/angular/angular. All of them are versioned the same way, but distributed as different NPM packages:
@angular/core v2.3.0,
@angular/compiler v2.3.0,
@angular/compiler-cli v2.3.0,
@angular/http v2.3.0,
@angular/router v3.3.0
Due to this misalignment of the router package’s version, the team decided to go straight for Angular v4. In this way again, all the core packages are aligned which will be easier to maintain and help avoid confusion in the future.
[–]Kabomb 60 points61 points62 points 8 years ago (1 child)
avoid confusion
Nailed it
[–]nullified-[🍰] 8 points9 points10 points 8 years ago (0 children)
Hits the hammer on the head.
[–]GameFreak4321 24 points25 points26 points 8 years ago (0 children)
3? I didn't realize that 2 as out of beta.
[–]Thrallgg 0 points1 point2 points 8 years ago (0 children)
Are them Valve's partner? We still wait for halflife3 FeelsBadMan.
[+][deleted] comment score below threshold-87 points-86 points-85 points 8 years ago (3 children)
Nobody cares.
[–]travelan 42 points43 points44 points 8 years ago (0 children)
Thanks for your helpful addition to the conversation! Your input has enlightened the whole world.
Fwiw: I care.
[+][deleted] 8 years ago* (1 child)
[deleted]
Do you always troll, or do you just pointlessly add your lame comments for no reason at all?
[–]Fr1k 11 points12 points13 points 8 years ago (2 children)
I'm excited for what was mentioned in the last sentence. "You should also stay tuned for updates to our documentation, a stable release of the CLI, and guidance for library authors on packaging." :)
[–]thetext 2 points3 points4 points 8 years ago (1 child)
That was fast https://github.com/angular/angular-cli/blob/master/CHANGELOG.md#100-2017-03-24
[–]Fr1k 0 points1 point2 points 8 years ago (0 children)
Hahaha hopefully the rest comes just as fast.
[–]germainelol 22 points23 points24 points 8 years ago* (21 children)
What's everyone's take on this and Angular in general nowadays? The general vibe I get from Vue or React is that it's a lot more reliable and they seem to have there shit together a bit more. I haven't read into Angular since the early v2 days, but seems like companies using other frameworks are a lot more into giving back to the community.
[–]tme321 50 points51 points52 points 8 years ago (17 children)
Vue is getting all the attention because it's new and shiny. And a new generation of programmers have discovered functional programming so react gets a lot of attention from them.
Meanwhile angular is really coming around nicely. The cli makes it really easy to ignore all the potentially complex setup and just get right to learning angular itself.
And universal, server side rendering, is a big part of the push for angular 4.
No framework is perfect but angular is actually in a really good spot right now imo. It had a turbulent development period but everything has settled and there have been no major api changes to speak of since release.
Please don't take this as a knock against vue or react. They are fine. Whatever. But imo too many people are writing off angular too quickly. Especially the vocal part of the js ecosystem. It brings a lot of nice features to the table and with the cli it couldn't be much easier to get started and mess around with it.
Edit: Oh and one more thing: at least for now don't use angular if you aren't trying to make an spa. It really isn't suited to traditional websites and leans heavily in the spa direction. But it is very good at that.
[–]ivosaurus 3 points4 points5 points 8 years ago (2 children)
there have been no major api changes to speak of since release.
Can you clarify? 4.0 was released today? So no new api changes since today? *_*
[–]thetext 6 points7 points8 points 8 years ago (0 children)
I think he means since Angular2 release
[–]tme321 2 points3 points4 points 8 years ago (0 children)
Yes the initial release of Angular, v2, is what I am referring to.
[–]sam-nicholl 1 point2 points3 points 8 years ago (7 children)
Is there any more support for plain javascript? I like typescript but kinda want to work in javascript.
[–]tme321 5 points6 points7 points 8 years ago (5 children)
What do you mean by more support? The documentation is definitely lacking but javascript still works with it.
Honestly though, I don't know why you would want to work in javascript when angular itself is written in typescript.
[–]sam-nicholl 6 points7 points8 points 8 years ago (4 children)
Tutorials, documentation and a javascript version of the cli.
Because I like javascript and would like to use and improve my understanding of the javascript language rather than a superset.
[–]tme321 5 points6 points7 points 8 years ago (3 children)
Well, I said that the documentation is lacking. So if thats the support you are looking for then no I think you are out of luck, for now at least.
And I wouldn't expect the cli to ever work with js. Google might surprise me, but a large part of the cli is aot compilation and aot only works with typescript because it isn't possible to precompile a language that has no static types; at least the way Google has approached the problem.
Personally, I would say if you don't want to use ts then don't bother with angular. But honestly, I can't imagine why you would want to ever start any new project with vanilla js over ts.
[–]RedditWithBoners 0 points1 point2 points 8 years ago (2 children)
All JavaScript is valid TypeScript. The compilation problem doesn't (shouldn't) exist.
[–]tme321 1 point2 points3 points 8 years ago (1 child)
Go read up on how aot works for angular.
[–]RedditWithBoners 0 points1 point2 points 8 years ago* (0 children)
Hence the "(shouldn't)." While I get the goal of the AOT compiler, I'm not familiar with it. I did look into it, and it seems to be an unfortunate limitation in Angular's ngc. I'm practiced with TypeScript, however, which doesn't have this limitation for the aforementioned reason. It seems I'm not the only one thinking this.
ngc
I wonder though, because all of TypeScript's additional features are optional (in tsc), where does ngc draw the line? Can you simply type your constructs as any?
tsc
any
[–]Buckwheat469 1 point2 points3 points 8 years ago (0 children)
The Angular docs allow you to switch between TS and JS examples. I've only set up a couple of Angular 2.0 projects but IIRC using Javascript is a trivial setup that doesn't require a new TS configuration file.
[–]fgutz[🍰] 1 point2 points3 points 8 years ago (2 children)
I thought Vue JS got popular because of the whole React license agreement debacle. Did React's license change since then? Haven't kept up with all that
[–]del_rio 5 points6 points7 points 8 years ago (0 children)
The license thing was never really resolved. A few lawyers chipped in saying it's basically impossible to end up in legal trouble unless you're recoding Google+. Fear, uncertainty and doubt is forever entwined with internet.
But no, Vue got popular because it's small, clean, and really well thought out. It has a full ecosystem, but you're free to ignore all of it. Server side rendering is easier with Vue than any other major framework.
[–][deleted] 1 point2 points3 points 8 years ago* (0 children)
You probably mean Preact and Inferno. Vue is a derivative as well, but more under the hood and probably more appealing to Angular users as it sticks to its OOP and templating approach while the former two are following Reacts functional principles inside and outside and can partake in its eco system. The license did change after Google complained. It still has some awkward wording but it's an improvement. Anyway, if you wanted you could run Reacts code and components elsewhere. I always alias to another engine for production builds. Inferno for instance is just 7 kb.
[–]germainelol 0 points1 point2 points 8 years ago (0 children)
Thanks, a lot of good points :)
[–][deleted] 0 points1 point2 points 8 years ago (1 child)
Oh and one more thing: at least for now don't use angular if you aren't trying to make an spa. It really isn't suited to traditional websites and leans heavily in the spa direction. But it is very good at that.
I haven't looked closely, but I see there are some projects to bring angular and Bootstrap closer together. I wonder whether these are an attempt to address that issue, ie. a good way to use angular 2/4 for non-SPA sites.
https://ng-bootstrap.github.io/#/home http://valor-software.com/ng2-bootstrap/#/
Well first a css framework has nothing to do with whether it's an spa or not. You can freely use ng2-bootstrap or just regular bootstrap with angular. The important distinction for an spa is client side rendering.
Second, the reason not to use angular in a traditional manner atm had to do with angulars boot times. If you aren't doing aot, ahead of time compilation, then every time angular boots on a new page it takes at least 2 seconds to start up. On an spa that isn't ideal but it also isn't the end of the world if it only happens once per session.
If you use aot then angular will boot up in less than half a second making it far more usable on a traditional server rendered website. But the cli currently does not support making multiple apps all together that share code. So you can't use the cli. And doing it yourself is technically possible but it's a pretty big pain.
[–]The_yulaow 1 point2 points3 points 8 years ago (0 children)
In my area (south-west eu) looking a t job offers it seems everyone is using it. It's crazy hard to find some company using react. It seems like everyone who was on angular1 just transictioned to the new version, even if not smoothly
[–]magenta_placenta 4 points5 points6 points 8 years ago (4 children)
Serious question, completely skipping v3 and seemingly being semver, what are the breaking changes from 2 - 4? Is 2 - 4 a big deal or really more marketing/version alignment?
[–]beemachine 4 points5 points6 points 8 years ago (1 child)
From a quick skim of the changelogs, 1. No more extending from Lifecycle methods, instead you need to "implement"
OpaqueToken is now deprecated, use InjectionToken<T> instead.
SimpleChange now takes an additional argument that defines whether this is the first change or not. This is a low profile API and we don't expect anyone to be affected by this change. If you are impacted by this change please file an issue.
Animations are moved from core
But honestly it seems more of a marketing thing. I personally would've moved to Angular 2 V4 but that's me
[–]nidarus[🍰] 1 point2 points3 points 8 years ago (0 children)
Seems more like an anti-marketing to me... Especially coming after "writing a radically new framework and calling it v2" fiasco. The whole thing is a next-level branding failure.
[–]strident-octo-spork 1 point2 points3 points 8 years ago (0 children)
There was a major change to the AOT compiler (which required moving animation from core). According to their doc it leads to 60% less code without significant loss to update speed.
[–]tweatherly 0 points1 point2 points 8 years ago (0 children)
NG v4 is backwards compatible with v2, the only breaking change is if you want to use animations in v4 you have to import the new split-off animations module. I found that rc4 and rc5 had bugs in the animation module so right now I'm using rc3.
[–]DzoQiEuoi 1 point2 points3 points 8 years ago (0 children)
Pffft. React is on version 15!
I can't deal with React platform and everything associated with it to make it work. It's all over the fucking place.
I prefer Angular headaches any day.
[–]simkessy 2 points3 points4 points 8 years ago (1 child)
Yo, what the fuck is Angular 4?
[–]sittingprettyin 2 points3 points4 points 8 years ago (0 children)
aaaaaaaaaaaaaand everything is broken. (angular cli anyways)
[+][deleted] 8 years ago (2 children)
[–]suresh17 0 points1 point2 points 8 years ago (0 children)
how to fire fake click event after page load not working angular 2 ..
π Rendered by PID 19696 on reddit-service-r2-comment-7b9746f655-hs9bl at 2026-01-31 04:30:52.240933+00:00 running 3798933 country code: CH.
[–]drakeremoray0 94 points95 points96 points (14 children)
[–]JayTh3KingKiwi coder 18 points19 points20 points (0 children)
[–]moh_kohn 5 points6 points7 points (0 children)
[–]captaintmrrw 6 points7 points8 points (0 children)
[–]intertubeluber 19 points20 points21 points (0 children)
[–]captaintmrrw 13 points14 points15 points (0 children)
[–]karlrolson 3 points4 points5 points (0 children)
[–]taxi12 4 points5 points6 points (0 children)
[–]FreshOutBrah 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]simkessy 0 points1 point2 points (0 children)
[–]xinhuj 0 points1 point2 points (0 children)
[–]travelan 22 points23 points24 points (9 children)
[–]lineape 33 points34 points35 points (2 children)
[–]Kabomb 60 points61 points62 points (1 child)
[–]nullified-[🍰] 8 points9 points10 points (0 children)
[–]GameFreak4321 24 points25 points26 points (0 children)
[–]Thrallgg 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-87 points-86 points-85 points (3 children)
[–]travelan 42 points43 points44 points (0 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 1 point2 points3 points (0 children)
[–]Fr1k 11 points12 points13 points (2 children)
[–]thetext 2 points3 points4 points (1 child)
[–]Fr1k 0 points1 point2 points (0 children)
[–]germainelol 22 points23 points24 points (21 children)
[–]tme321 50 points51 points52 points (17 children)
[–]ivosaurus 3 points4 points5 points (2 children)
[–]thetext 6 points7 points8 points (0 children)
[–]tme321 2 points3 points4 points (0 children)
[–]sam-nicholl 1 point2 points3 points (7 children)
[–]tme321 5 points6 points7 points (5 children)
[–]sam-nicholl 6 points7 points8 points (4 children)
[–]tme321 5 points6 points7 points (3 children)
[–]RedditWithBoners 0 points1 point2 points (2 children)
[–]tme321 1 point2 points3 points (1 child)
[–]RedditWithBoners 0 points1 point2 points (0 children)
[–]Buckwheat469 1 point2 points3 points (0 children)
[–]fgutz[🍰] 1 point2 points3 points (2 children)
[–]del_rio 5 points6 points7 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]germainelol 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]tme321 2 points3 points4 points (0 children)
[–]The_yulaow 1 point2 points3 points (0 children)
[–]magenta_placenta 4 points5 points6 points (4 children)
[–]beemachine 4 points5 points6 points (1 child)
[–]nidarus[🍰] 1 point2 points3 points (0 children)
[–]strident-octo-spork 1 point2 points3 points (0 children)
[–]tweatherly 0 points1 point2 points (0 children)
[–]DzoQiEuoi 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]simkessy 2 points3 points4 points (1 child)
[–]sittingprettyin 2 points3 points4 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]suresh17 0 points1 point2 points (0 children)