AngularJs directive access in new Angular [duplicate] - angularjs

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I am looking into ways of migration a current Angular 1 project to Angular 4.
Options are ng-forward, ngUpgrade or rewrite.
I am thinking on rewriting it but with a twist.
I keep the current application
Start writing the new one parallel to it
All new NG4 rewrites, I want to use ... so bit by bit in other words.
Has anyone attempted this or know a better way?

Incrementally upgrade an AngularJS application to Angular.
One of the keys to a successful upgrade is to do it incrementally, by running the two frameworks side by side in the same application, and porting AngularJS components to Angular one by one. This makes it possible to upgrade even large and complex applications without disrupting other business, because the work can be done collaboratively and spread over a period of time. The upgrade module in Angular has been designed to make incremental upgrading seamless.
For more information, see Angular Developer Guide - Upgrading from AngularJS
The DEMO on PLNKR

Related

Why is angular.io using old version of Angular? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
If I read the source of https://angular.io/ right, it looks to me that they are still using Angular 1 there i.e. 1.6 version. To me it is a hint that while the new version of Angular is very advanced there are still challenges when it comes to production deployments of sites that are publicly available?
Story of the undeveloped chicken and the egg. angular.io was there when the new angular was still in alpha. You cannot safely use an alpha version in production builds. Now that angular is released, there is no real advantage in refactoring the entire site to use the new version. Why break something that ain't broken.
If you check the material site you will see that it is build in the new angular
Angular.io using Angular 1 instead of 2 becouse they created this page during working on angular 2 when it wasn't ready yet to production.

Angular 1 or Angular 2? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I'm learning angular 1, however, angular 2 is in Beta and can be released soon.
Question.
Start a website with angular 1 and then I upgrade to angular 2?or beginning make angular 2 with typescript?.
I am in doubt what to do, I do not know if I start with angular 1 or already invest in angular 2
on his twitter angular, put a new update on angular 2
Thanks.
The two are completely different. So, it depends on your propose.
If your website cannot has any bugs, you probably should use ng1.
If your site can have some bugs sometimes, you should use ng2.
Why?
Ng1 will have google support until at least 2018, so, dont be afraid that your site wont be up to date.
Ng2 is the future, using modern technologies and the new ECS features. Totaly different from ng1, so almost everything that you lear in ng1 wont be used in developing ng2 apps.
You must think about what you are looking after: knowledgement or a strong and stable tool. Ng1 is strong and stable, Ng2 is the future...

Freemarker Vs Angular Js [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I'm using angularjs for my application, which is so secure (similar like banking application),i have another option of using freemarker or velocity ..
whether it is best to go with angularjs or we can use freemarker or velocity. if so could you please explain. the backend service is spring boot .
Freemarker is just a templating engine, it's not a full front-end framework with 2 way data binding like angularjs is. Also, with angular it's very easy to build Single Page Applications which have a very smooth user experience compared to traditional applications where you must reload the page every time the user navigates to another page. If you already know angular, it's the better choice. If you don't know angular, then freemarker is much faster to learn but not quite as powerful/good. Though I do quite like freemarker as a templating engine.

Choosing AngularJS or Angular 2 [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I have been learning SPA using webAPI and AngularJS of late. Today I came across that AngularJS 2 has been released and it has advantages over AngularJS.
Now I am confused if I should continue learning SPA using AngularJS or should I leave it aside and concentrate on SPA using AngularJS 2, ASP.NET 5 and TypeScript.
Please guide me which is better option. Thanks in advance
Angular 2 is still in beta, so if you want a more stable version use angular js. I think that as you mentioned you are learning I would recommend going with angularjs since you will find a big community and lots of documentation online.
So far I know AngularJS 2 is in its beta (but I think it's now usable, at least for learning), but if you don't have a production application in 1.x or you won't maintain 1.x code, I'd start learning 2.0, since at the end, you'd be using 2.0 (if you'd stick to NG).

Angular.js beginner what version should I use? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I am starting to integrate Angular.js into my web project.
I see on the Angular.js download page they have version 2.0.0-snapshot although I don't think version 2 has been formally released.
From the looks of the download page I think the last stable version was 1.4.7. Is that the last stable version?
And also what is recommended? Should start with version 2 or version 1.4.7 (keeping in mind a I am complete beginner).
Angular 2 is currently in Developer Preview. Angular 1.X is recommended for production applications.
That said. It's pretty important to remember that Angular 2 is basically a completely different framework with little-to-no backwards compatibility. When we all do switch (and we will someday), we'll have to start with a fresh plugin community, or wait until developers choose to update their modules to include an Angular 2 version.
Our goal with Angular 2 is to make the best possible set of tools for building web apps not constrained by maintaining backwards compatibility with existing APIs. - Angular Blog
I think the time to migrate will be around 6 months after a production release of Angular 2. That will give the developer community time to catch up and give the framework time to mature in the real world.

Resources