ngUpgraders / ng-forward

The default solution for those that want to write Angular 2.x style code in Angular 1.x
411 stars 36 forks source link

ng-for for ng-forward :-) #43

Closed david-gang closed 4 years ago

david-gang commented 8 years ago

Is ng-for available ? If not would it be possible to create this ?

caseyhoward commented 8 years ago

What do you mean exactly?

david-gang commented 8 years ago

I mean the ng-for of angular2 https://angular.io/docs/ts/latest/api/core/NgFor-directive.html

timkindberg commented 8 years ago

I just realized we could probably support this as a template preprocessor. Basically you could write the ng2 style and we'd use regex to convert it to ng1 style. So in output like chrome dev tools it would look like ng1. But you'd still get the benefit of easier migration. @david-gang thoughts?

david-gang commented 8 years ago

@timkindberg This would be a good idea. I have a couple of questions: How is this different from the kebab case issue? Also there we could run a regexp? Additionally how can we be sure that we won't break anything. Once we do it wrong the pwerson would not be able to bootstrap his app.