Closed tolemac closed 8 years ago
In the other hand, I would like to know how to build the project to try contribute.
Can you tell me the necessary steps to build?
@tolemac Hi Javier, thanks for your interest in contributing and your critical comments.
We started this project from another project (angular-decorators by @MikeRyan52) so there was some existing classes there that we kept (e.g. Module) and just used them as they were convenient even though we probably wouldn't do it that way if we would have started from scratch.
Per your questions specifically:
angular.bootstrap
. So it takes an entry point Component, traces its dependencies (i.e. directives, providers, pipes) and bundles them up into a single angular.module
which you can then use as a dependency in a normal ng1 codebase. It's really not intended to be used most of the time. We call it for you when you call bootstrap
.angular.module
that sugars it a bit for our internal development. Makes it just a bit easier to add decorated classes to a module. We are aiming to be the most complete Angular 2 polyfill. Not just a simple @Component polyfill.
To contribute, clone the repo, run npm i
, run gulp
to build or gulp dev
to run tests in watch mode.
Thank you very much @timkindberg. It help me to understand a lot of things.
Hello all!
I have to start a new project. A week ago, I was thinking about the best way to prepare for Angular 2, I didn't know this project but I came to the same conclusion as you, I wrote this post in my blog: http://code.jros.org/2015/12/04/ng2emulation-typescript-angular-1-4-code-using-angular-2-style/ and I started this project: https://github.com/tolemac/Ng2Emulation
I'm publishing my post in some forums and somebody tell me about ng-forward: https://groups.google.com/forum/?hl=es#!topic/angular/-jFGjYTY754
Well, now I'm thinking about use ng-forward, I'm looking at the code and looking at like you do things.
I have some questions:
reflect-metadata
?, I think it isn't needed...I would like to know how you organize the project, due to, at firts glance, I can see too much code ...
In other words, I think that this kind of project should be a very slim layer between user code and framework code (Angular 1).
Perhaps my questions are too general and you don't have time to answer me, if it is, I have any problem ;)
Thanks in advance.