TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Angular 1 and Angular 2 integration: the path to seamless upgrade

202 点作者 hswolff超过 9 年前

20 条评论

escobar超过 9 年前
I have been evaluating writing some new applications in Angular at work and was quickly turned away from it because before today the actual migration path seemed very unclear. Without a migration path, picking v1 for a new application at this point would be silly, and 2 is completely unready for production.<p>Hearing that they are really planning on making it more or less &quot;backwards compatible&quot; is definitely a smart move from the Angular team, and makes me more comfortable potentially suggesting Angular as a framework.
评论 #10117870 未加载
tericho超过 9 年前
Seeing a lot of comments about how Angular had no migration plan. Migration was discussed at length at ng-conf back in March, including a large portion of the keynote(s). They made it very clear a smooth and simple migration was top priority.<p>Part of migration talk in keynote: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;QHulaj5ZxbI?t=12m43s" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;QHulaj5ZxbI?t=12m43s</a><p>Full playlist: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;QHulaj5ZxbI?list=PLOETEcp3DkCoNnlhE-7fovYvqwVPrRiY7" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;QHulaj5ZxbI?list=PLOETEcp3DkCoNnlhE-7fovYvq...</a>
评论 #10118968 未加载
评论 #10125652 未加载
Goranek超过 9 年前
I know that hating angular is popular these days, but i&#x27;m still using it, and it serves me well. Looking forward to Angular 2!
评论 #10118414 未加载
评论 #10120614 未加载
pfooti超过 9 年前
This looks nice. I like the idea of more-or-less seamless integration between a1 and a2 on the same page, to allow for incrementally experimenting with a2 features without having to port the entire application over.<p>With angular 2 moving to a virtualdom implementation we can get serverside rendering and some real speed improvements (if you move your virtualdom stuff to a web worker for example). This is rad.
omouse超过 9 年前
Every time I use Angular it feels like it&#x27;s doing things the right way and it&#x27;s becoming the Rails or Django of the JavaScript world. Wish I had fought to use AngularJs directives and $resource instead of messing about with ReactJS and jQuery ajax calls.<p>With this migration plan it seems silly <i>not</i> to keep hacking with AngularJS 1.x
评论 #10121631 未加载
评论 #10120636 未加载
gedy超过 9 年前
I see 2-way data-binding is mentioned here and will still be supported (good). Curious why has 2-way now become &#x27;uncool&#x27; recently, e.g. React? 2-way is what got me excited about client side JS due to the code reduction in an average app. Is just that Angular 1&#x27;s implementation was non-performant? (lots of other frameworks use it as well, e.g. Knockout, RactiveJS, etc).
评论 #10118173 未加载
评论 #10119501 未加载
netfire超过 9 年前
Why isn&#x27;t there a single domain for the angular project?<p>From what I can see there seems to be 2 main ones: angular.io (for angular 2) and angularjs.org (for angular 1.x) as well as angulardart.org and other sites for angular material design (material.angularjs.org) and angular firebase (firebase.com&#x2F;docs&#x2F;web&#x2F;libraries&#x2F;angular&#x2F;). Why not have a single site (or at least a main domain with corresponding subdomains) with similar documentation and navigation?<p>In addition, searching for &quot;angular&quot; in Google provides no obvious distinction between the different sites. For a Google sponsored project, I would have expected better attention to the search meta-data to make the distinction clear.
评论 #10118419 未加载
评论 #10118397 未加载
aikah超过 9 年前
See , that&#x27;s how you manage an open source project , you listen to your community , and yes people can have relevant suggestions. Angular JS became successful because of its pragmatism but also because it allowed more than 1000 people to contribute to its core, not because it was a &quot;Google project&quot; .<p>Everybody knows what other project i&#x27;m talking about.
评论 #10118353 未加载
评论 #10118576 未加载
weego超过 9 年前
&lt;input type=&quot;text&quot; [(ng-model)]=&quot;model.name&quot;&gt;<p>Remember when we were worried about the semantic purity of our HTML.
评论 #10117842 未加载
评论 #10117705 未加载
评论 #10118024 未加载
robotnoises超过 9 年前
&gt; We&#x27;ve decoupled Angular 2&#x27;s rendering from the DOM.<p>Does this mean they are using some sort of virtual dom a la React?
DavidPP超过 9 年前
if I&#x27;m reading this correctly, they also planning to release a react native competitor?<p>&quot;Native mobile UI. We&#x27;re enthusiastic about supporting the Web Platform in mobile apps. At the same time, some teams want to deliver fully native UIs on their iOS and Android mobile apps.&quot;
评论 #10118861 未加载
评论 #10118776 未加载
__luca超过 9 年前
One of the biggest benefit of Angular is the vast amount of libraries built on it, like bootstrap-ui and ui-grid to name a few, how can we switch to Angular 2 until the most adopted ones don&#x27;t switch too? (real question)
评论 #10118867 未加载
评论 #10118858 未加载
评论 #10122012 未加载
__luca超过 9 年前
Commets here made me think about whether it&#x27;s forward-looking using angular 1.0 for next projects: i guess i&#x27;ll go with React with my short-coming project then... I don&#x27;t know what to do
评论 #10119111 未加载
oDot超过 9 年前
Anyone knows how Angular 2 plays with &quot;outside&quot; code? It is very frustrating, having to convert everything to a directive when using with Angular 1.
Bahamut超过 9 年前
For the curious, this is the official repository for the ng2-to-ng1 engine: <a href="https:&#x2F;&#x2F;github.com&#x2F;ngUpgraders&#x2F;ng-forward" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ngUpgraders&#x2F;ng-forward</a>
评论 #10118219 未加载
greenpizza13超过 9 年前
This is really great news for my company, as we have several Angular 1 applications still in development that can benefit from this incremental upgrade pattern.
help_everyone超过 9 年前
Finally! There has been talk for what seems months for an upgrade path. I&#x27;m so happy that there is finally some clarification.
crimsonalucard超过 9 年前
The dramatic shift from version 1 to 2 is generally a sign of design mistakes. Angular 1 should have been angular beta.
评论 #10118549 未加载
deckiedan超过 9 年前
Slightly off topic, sorry, but I do HATE how blogger.com sites are totally unusable with JS turned off &#x2F; noscript &#x2F; etc ...
评论 #10119445 未加载
oompt超过 9 年前
Aurelia is looking nice right now.
评论 #10119617 未加载