Angularjs without controller

Today I saw a tweet from Pawel Kozlowski that controllers will go to Angularjs 2.0

Does anyone know how angular can be without controllers? I am currently handling almost everything in the controller and I don’t know when the next version will be released, how much our code will change.

+3


source to share


1 answer


Yes. You're right.

What's missing in AngularJs 2.0?

  • Controllers

  • Directive Definition Object (DDO)

  • $ Volume

  • angular.module

  • JqLite

enter image description here



Angular 2.0 Head slides from ng-europe talk: Angular 2.0 Core

About your question: Why do you need to work with AJS 2? If your application gives you what you need with AJS 1.X then why do you need to change it to AJS 2.B'cos The AJS 1.X series will continue as in the future. So there is no need to worry about it. But if you launch a new application, you can launch it with AJS 2 (if available at this time). This is my suggestion for you.

What Google says about AJS 1.X:

If you are building web applications today, this is the version you should be using. This is the tried and true version that we really believe in. inch. With over 1600 apps on Google built with Angular 1.x, we are committed to supporting it as the first version of AngularJS for a long time.

+3


source







All Articles