![]() ![]() And this was after a few years of AngularJS 1. Developers smarter than me crafted amazingly intricate card houses that collapsed easily. ![]() As my applications got bigger, my head exploded. And there were so many ways to mess it up. I'll be honest, it took a lot of time to truly master AngularJS 1. And the best part about AngularJS 2 is that it's easier than AngularJS 1.You don't need ng-href or ng-src, but you can still have your own tags, like, etc. And finally, it tends to pollute your HTML less, and only in ways that semantically enhance HTML. It also allows you to logically design and arrange your application in components rather than controllers. AngularJS 2 allows you to do MVC, or Flux, or any other design pattern you wish. AngularJS 1 had the bad habit of polluting your HTML, not giving you more control on CSS, and forcing you to think in MVC. It allows for a more logical code structure than its predecessor.Although it relies on the newest standards, it uses polyfills to support almost every browser you care about. If you wrote the same functionality in AngularJS 2 as you wrote for AngularJS 1, AngularJS 2 will most likely far outstrip the performance of AngularJS 1. It takes full advantage of modern Web browsers and defaults to using the capabilities they offer to give you the best performance. There are four main reasons you should seriously consider AngularJS 2: Angular JS 2 brings it up to date with modern Web standards, better design patterns, and takes advantage of what's new and awesome today. AngularJS 2 is a natural evolution of AngularJS 1. This is not unexpected: Times change and technologies evolve. As a result, in an AngularJS 1 world, you are more likely to see lots of JavaScript or incomplete usage of TypeScript. Yes, although you could use TypeScript, it was hard to take full advantage of it unless you consciously attempted to do so. Plus, TypeScript, which, in my mind is the single most important innovation in JavaScript since fast JavaScript engines, always felt like an afterthought in AngularJS 1. Over time, as browsers improved and Web technologies were applied to more than just browsers, AngularJS 1 didn't take full advantage of those scenarios. And most of all, there were so many ways to do it incorrectly, and so many ways to do it better than the last developer. Buying into it was embracing the whole platform. But let's be honest, although AngularJS was a huge improvement over writing JavaScript by hand, it did have some issues. In a language devoid of good design patterns and strict rules, AngularJS brought sanity and consistency. Writing complex applications in JavaScript can be challenging, and AngularJS made it approachable. More than 1.1 million developers have embraced this platform and created thousands of applications using it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |