- 
                Notifications
    
You must be signed in to change notification settings  - Fork 13.8k
 
New TodoMVC implementation in Angular 2 with ES2015 #1581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ion for built files
…ors and add esnext to jscs rules for decorator syntax
| 
           Thanks for the submissions - and also confirming my Angular 2 issue regarding webdriver! The implementation looks good, however the structure of the app does differ quite a bit from the current TypeScript implementation: https://github.com/tastejs/todomvc/tree/master/examples/angular2 This doesn't really help people compare the two. It looks like you've gone down quite a componentised approach. While the todo item feels like a separate component, I'm not so sure about the header / footer. I'd be interested in the feedback from others @tastejs/todomvc  | 
    
| 
           Is it a must to have very similar implementations within a framework? It shows how easily components can be created and can communicate through  The purpose with these refactorings were to show as much as possible from the framework and provide a clean maintainable architecture.  | 
    
        
          
                examples/angular2_es2015/.gitignore
              
                Outdated
          
        
      There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in your own global gitignore, not here.
…or specific gitignore
| 
           +1 for this. Currently angular2 implementation of todomvc is looks very ugly and doesn't provide proper illustration of component approach to people who is migrating from angular 1.x branch. as for footer/header components, it's seems to be ok.  | 
    
| 
           @fesor PRs welcome  | 
    
| 
           I'm +1 to this PR - I've had a quick look through the code and it looks nice and clean. I'll look to update the TypeScript implementation so that it makes better use of Angular 2 components, giving a similar structure to this example.  | 
    
          
 👍  | 
    
| 
           Is it OK to merge then?  | 
    
| 
           Updated dependencies and tried to remove two way data binding but it didnt solve the issue with input element :(  | 
    
| 
           Till the bug fixed no Angular 2 examples will be merged?  | 
    
| 
           Is there interest in updating this PR to work with the latest stable Angular 2?  | 
    
| 
           Yes, upgraded my own repository to latest  | 
    
| 
           @addyosmani It is updated to the final version. Browser tests fail when trying to locate the list elements although they exist:   | 
    
| 
           @ColinEberhardt @samccone any idea how to solve the issue with the tests? Tried to eliminate the waiting constructs and instead query for all elements and then select the nth from the array, but it seems a huge workaround.  | 
    
* New TodoMVC implementation in Angular 2 with ES2015 * New TodoMVC implementation in Angular 2 with ES2015 - add jscs exclusion for built files * New TodoMVC implementation in Angular 2 with ES2015 - fix linting errors and add esnext to jscs rules for decorator syntax * New TodoMVC implementation in Angular 2 with ES2015 - remove own editor specific gitignore * update dependencies * upgrade to rc3 * remove inject author * update jscs exclude * fix jscs styling * fix loading issue of assets * resolve conflicts and update to angular 2 final
Tests for Angular2 examples fail because of angular/angular#6250. The application itself is working as intended.