In addition to following the style guide there are plenty of blogs about writing angular 1 code using Typescript. Taking advantage of Typescript now will remove yet another layer of complexity when switching to A2. I'll provide some links later when I have more time.
On Tue, Nov 24, 2015, 8:41 PM Sander Elias <[email protected]> wrote: > Hi, > > Well, There are a couple of things you can do. Let me first quote from the > official blog > <http://angularjs.blogspot.com/2015/08/angular-1-and-angular-2-coexistence.html> > > >> *What can I do today to prepare myself for the migration?*Follow the >> best practices and build your application using components and services in >> Angular 1 as described in theAngularJS Style Guide >> <https://github.com/johnpapa/angular-styleguide>. > > > Read the styleguide! that's already a lot of it. Then stop using $scope, > and ngController (or, if you are starting, don't start using them. that's > easier!) > Also, you might look at ng-forward > <https://github.com/ngUpgraders/ng-forward>. that enables angular 2 > (like) syntax for NG1. > > I know it's tempting to go NG2 from the start on, however, you have to > realize it's still in alpha. *There will be breaking changes*. (Yeah, I > know, google has already put out public projects on NG2, but then I ask you > this, do you have the core team on call? And can you afford a major rewrite > a few months in? I mean, do you have the manpower and money to do that?) > > Does that help you a bit? > > Regards > Sander > > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/ypkCQhstmw0/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
