TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Angular 5.0.0

189 pointsby d2kxover 7 years ago

25 comments

Yaboodover 7 years ago
This rapid pace of major releases is a little scary. We're stuck running Angular 1.x because there's no reasonable upgrade path for us. We're a .NET shop and really like Angular, but after the 2.x cluster fuck, we're now thinking about going with something else entirely.
评论 #15604723 未加载
评论 #15605486 未加载
评论 #15604675 未加载
评论 #15604563 未加载
评论 #15605360 未加载
评论 #15605237 未加载
评论 #15604791 未加载
评论 #15604661 未加载
评论 #15605124 未加载
评论 #15604511 未加载
评论 #15606678 未加载
评论 #15605028 未加载
评论 #15607853 未加载
评论 #15605353 未加载
评论 #15607131 未加载
philippzover 7 years ago
I somehow do not get all that bashing. Angular did extremely great things with Angular 1 (back then). As time passed, the community learned that there are better&#x2F;other concepts. React came out - nice. NG2&#x2F;4 therefore had to include major changes to pave the way for the future and more modern concepts. And it is important that they do that because some people have built huge teams and applications based on Angular. So, thanks!<p>From ng1 perspective, the migration path to ng2&#x2F;4 is more economic than a Vue or React rewrite. We examined that in depth. This is why we upgraded to ng2 instead of rewriting the application in Vue or React. And as i can see it, ng5 fixes major issues from ng2 and we&#x27;re happy that the Angular team keeps on pushing here.
评论 #15607815 未加载
评论 #15605628 未加载
tannhaeuserover 7 years ago
Congrats to the new release! I&#x27;ve got a lot of respect for putting so much energy into open source projects.<p>Predictably, the discussion evolves around Angular vs react&#x2F;vue&#x2F;ember or whatever (personally, I like react).<p>My current customer project introduced me to a new generation of web front-end developers specializing in a particular framework (react&#x2F;redux in our case) but know very little about CSS and the myriad of plumbing and polyfilling going on in browsers. In the end, they delivered an app that would only run on Chrome. Sadly, the whole thing makes me realize just how utterly inadequate the web platform after all these years still is for the kind of MVw apps folks want to use it for.<p>I think there&#x27;s a place for a new &quot;opinionated&quot; web framework once again which more closely matches the needs of business apps, and which has an option to stand-alone app deployment outside web browsers. Mind you, this isn&#x27;t a sentimental reflection on Java applets and their failure or some such, but based on years of actual project experience, including in front-end developer roles.<p>For example, the other day I learned that in 2017 there&#x27;s no way to query the current zoom level of a web app (until very recently with the brand new Viewport API; but it&#x27;s not supported using media queries; I mean, seriously?). Furthermore, I&#x27;m using a very simple SVG background image for a text area element, and the latest Chrome release introduced laughable aliasing bugs, which I could only workaround by using `opacity: 0.99`. There are still just so many tricks and hacks necessary for even the most basic of UI tasks that a realistic web app project feels like jumping from one ridiculous issue to another, frantically searching through StackOverflow, CSS-tricks, etc.<p>With the somewhat naive reception of react, Angular, and co (which don&#x27;t actually do anything GUI-related, nor help with browser compatibility problems), I&#x27;m wondering whether I&#x27;m the only one feeling like putting square pegs into round holes using the web for anything other than content-driven sites.
评论 #15611579 未加载
评论 #15607568 未加载
ainar-gover 7 years ago
From my colleagues, both front-end developers and full-stack developers, I&#x27;ve heard nothing but criticism of Angular &gt;2.0.0. I would like to hear the other side. If you use fresh Angular, why?
评论 #15604293 未加载
评论 #15604325 未加载
评论 #15604720 未加载
评论 #15607898 未加载
评论 #15604222 未加载
评论 #15605304 未加载
评论 #15607829 未加载
interlocutorover 7 years ago
Lack of compile-time checks for the template (and embedded expressions) is a major limitation of Angular. This may be OK for small projects. For large projects with many developers this is a huge problem. Here&#x27;s what happens: a developer modifies code he&#x27;s not familiar with. He introduces a bug due to a typo. He builds the code without errors, and runs the application, and everything seems to be OK. The bug is not found even at run time because the developer did not click on something during his manual testing. You can try to reduce such problems with automated tests, but test automation can&#x27;t reach every corner. As much as possible such issues should be caught at compile time, and Angular can&#x27;t. This is a major flaw.<p>Compare that to .tsx templates (Typescript&#x27;s version of JSX). All html as well embedded expressions are checked at compile time, and typos are caught at compile time.
评论 #15604520 未加载
评论 #15604594 未加载
评论 #15604925 未加载
评论 #15606172 未加载
评论 #15605253 未加载
afromobileover 7 years ago
we&#x27;re a c# shop too. 7 developers. we started with angular 1. we too got caught in the angular 2 mess but we stayed with it. we know react but after you add routing, redux, forms, etc to react, you&#x27;ve got something close to angular.<p>i just updated a medium sized angular 4 app to angular 5 with no problems. typescript has been our saving grace especially when you&#x27;re collaborating code with your team. we&#x27;ve really come to enjoy angular. if you&#x27;re migrating from angularjs it can be difficult but if your developing a new app with form validation, routing, redux then i would recommend angular.
Yuioupover 7 years ago
I really don&#x27;t get the hate for Angular 2+. Been using it for almost a year now and I love it. Fantastic stuff.
评论 #15608712 未加载
racl101over 7 years ago
I haven&#x27;t used Angular in a while, so I haven&#x27;t heard about Angular 3 or 4.<p>What&#x27;s even weirder is that most people I know using Angular are still using version 1.
myth_drannonover 7 years ago
Unfortunately Angular lost the market momentum they had and other frameworks picked up the tab. No matter how many amazing features they add.
nikolayover 7 years ago
While most still are on Angular 1, releasing 5 reminds me of Magento where most shops are still on version 1 with no desire to upgrade to 2. There are even forks that focus on improving version 1 ignoring the version 2 of the upstream project.
EugeneOZover 7 years ago
Thank you for new release. For me there is still nothing better than Angular - I hate html validation, but I hate JSX even more. I hate verbosity of declarations (app.module, app.component, imports...), but I hate lack of official router in React even more. I don’t like RxJS and I hate that you are forcing me to use it, that you ignore even simple feature request about GET-caching, but there is still no good replacement for Angular. I didn’t mention hell with tests just to don’t be too sad on this happy moment of new release with a lot of breaking changes. Thank you.
jbigelow76over 7 years ago
The more time I&#x27;ve spent with Angular 2+ and later the more it feels like a DSL to me than a Typescript framework, much more so than the, admittedly very limited, time I&#x27;ve spent with React and jQuery before that. That&#x27;s not really a knock on it, I find it to be extremely productive for me which is why I haven&#x27;t gotten away from it. I just don&#x27;t think it does much to enhance my skillset in front-end development overall.
maxpertover 7 years ago
Have recently moved system from TS + Angular 1 to Angular 1.5 and then to Angular 2 (took us solid 1 year and you can still see some traces of older code), by time we finished move to 2, Angular 4 was released! And now this! This is WTF moment of my life.
评论 #15605077 未加载
评论 #15604986 未加载
评论 #15606080 未加载
评论 #15608718 未加载
drraid0over 7 years ago
All I want for Angular are better error message and better browser-refresh times. Right now on 4 I get a meaningless page of gobbledeguck for most error (b&#x2F;c of transpilation) and 12 seconds to reload the page.
评论 #15605047 未加载
botskonetover 7 years ago
Several years ago we chose AngularJS&#x2F;v1 for an enterprise-level app. Once Angular&#x2F;v2 was announced it was still more of an experiment, but things have changed far faster than we anticipated.<p>Projects like ui-grid are dying and ui-bootstrap is dead and they&#x27;re moving to Angular support only. We&#x27;re suddenly using tech that&#x27;s being abandoned a lot sooner than we foresaw.<p>I have my issues with Angular v2+, though overall it&#x27;s way better than v1, but I truly hope the same doesn&#x27;t happen to those making an investment in this new platform.
hanspragtover 7 years ago
Has anyone had success using the AOT tools to build a package of reusable angular components? I was able to use AOT pretty easily for a stand-alone app, but keep running into issues when trying to create a shareable component, and there is not a lot of documentation around this.
评论 #15604627 未加载
评论 #15604882 未加载
评论 #15605796 未加载
fareeshover 7 years ago
We have invested time into Angular 2 and leveraged a fair amount of its features and ecosystem, but implementation specifics on some have been a great challenge.<p>We watched the Google I&#x2F;O presentation from 2016 where the team pitched a lot of exciting stuff coming to angular like SSR&#x2F;Universal rendering, and decided to buy in and use ng2, but using universal with the CLI was near impossible to get done given how undocumented it was. There was a CLI fork that was quite promising, and with a bit of work we managed to get client side AOT optimization and SSR.<p>Bundle sizes after all this were unacceptably high. The documentation and talks had discussed things like tree shaking and other such optimization processes, but there was a tussle between webpack and rollup where the CLI used one and not the other, and rollup did tree shaking better, so we had to either drop tree shaking or the CLI. It was not a fun experience.<p>Eventually angular 4 dropped and there was a timeline on getting the CLI up to speed with universal, the guys at Google I&#x2F;O 2017 did a talk on universal rendering, but they used some cryptic command line tools that were also fairly undocumented at the time. The angular 2 app sat in production using the old CLI fork that had been abandoned and we weren&#x27;t able to migrate because universal documentation for angular 4 was also relatively unclear.<p>Finally for future projects we opted to go with Vue, which has been relatively nicer. We used localization, token based authentication via cookies to enable authenticated universal rendering for logged in users, PWA features (offline). The project was analogous to Yelp, with product and service suggestions displayed to the user depending on their browsing habits and other aspects of their profile. Roughly 300k monthly uniques. Universal was essential for SEO and performance since 90% of traffic was search.<p>Other than struggles with universal and SEO, there were some issues with getting customizations to the webpack build process since the CLI fork we used didn&#x27;t allow for many changes like adding minification, etc. We also wanted stuff at the express end of things like HTML minification, but there was no clear-cut way to do caching across things like authenticated vs unauthenticated. Maybe we couldn&#x27;t think of the best way to go about this. Other frameworks seemed to have a painless way of doing this stuff, so we spent a lot of time wondering if we had made the right choice. Most of the plain client side stuff was very satisfying to use. RxJS is great as well, and it was nice to see it become popular across the JS ecosytem. I am not sure if I would go with angular for future work because the bundle size seems to be overwhelmingly high - perhaps due to a knowledge gap at our end. What would be fantastic some sort of sample kitchen sink demo application that employs all the best practices for everything - auth, localization, seo, universal, build process customization, etc.<p>At the time of our evaluation, we looked at a number of quickstart and bootstrap&#x2F;boilerplate&#x2F;starter kit projects, but each one seemed to lack one thing that we really wanted, with no clear path to integrating it in.
评论 #15605351 未加载
simookover 7 years ago
Still a fan of 1.x, not sure why they think new major versions will convince me to move forward.
KaoruAoiShihoover 7 years ago
Just use Vue. Angular is just dead for a large part of the community.
merbover 7 years ago
`ng serve --aot` will be default?<p>thanks... please fix: <a href="https:&#x2F;&#x2F;github.com&#x2F;angular&#x2F;angular-cli&#x2F;issues&#x2F;6742" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;angular&#x2F;angular-cli&#x2F;issues&#x2F;6742</a> before..
评论 #15605135 未加载
评论 #15605070 未加载
yatinkalover 7 years ago
When Angular 1 was left for dead I went to Knockout.
azr79over 7 years ago
Fantastic release, congrats to the Angular team!
gungomanover 7 years ago
Coming from the jQuery and Datatables and Knockout era, I just can&#x27;t accept the weight and performance of Angular beyond the 1.0 release. I fell in love with Vue.JS (it works like jquery and knockout very similarly)
bjconlanover 7 years ago
Woah! static injector and typescript transforms! does this mean i can use angulars dependency injection framework for any typescript project without including any &#x27;real angular&#x27; so i can start writing node services like i would with spring!? (or perhaps closer to dagger2?)
diminishover 7 years ago
5.0.0? - such precision in versioning for a library or framework seems both too quick and too precise at the same time.
评论 #15604471 未加载