Hacker News new | ask | show | jobs
by snippet22 3592 days ago
Well angular 2 is mostly written the same way every time you want to build something and is connected through a custom html tag. This allows you to not deal with js that is built 100 different ways for a 100 different reasons. Not just that but file structure is exactly the same always. Basically angular1 was just a step up from JavaScript which seemed nice but really with not much reusability. Plus since you can build components inside components, you don't have to worry about implementation into a project. With RC5s new modules, you don't have to worry about importing into those components. So basically you can easily implement the app into any project with the same components and the same way always. Basically once you make one, you don't have to rewrite it. They even have their own CSS files, and use life cycle hooks so you can have different components fire off at different render times or events. It is basically the jquery of data. Also with easy observables, server side rendering, and simple data binding, you really can do anything. Angular 2 and 1 are night and day.