-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Removed globals, "Controller as" Syntax, Simplified functions #1559
Conversation
By analyzing the blame information on this pull request, we identified @passy, @IgorMinar and @sindresorhus to be potential reviewers |
Fixed the space warning. Can change |
Thanks for the PR @dmitriz I left come code review comments! |
@dmitriz mind fixing the jscs errors (which is causing CI to fail) As for the self complaint from jscs, as you pointed out what you are doing is idiomatic angular, so lets just disable that specific rule via an inline comment jscs-dev/node-jscs#486 👍 thanks for this awesome work and let me know if you have any other questions... on a side note we have several angular examples that could use this work ^ https://github.com/tastejs/todomvc/tree/master/examples/angularjs Would be supppper amazing if you wanted to update these as well 😄 |
Thanks! You are most welcome :) The 2 questions remain:
|
Checkout this awesome walkthrough here is the rule we can disable with
|
|
oh oh I did not realize that was your question (pushing to a remote) :) glad you got it |
@dmitriz in the future you should be able to force push the update over this branch without having to open a new PR... no worries though |
Was trying to stay safe but thanks for the head up :) |
Actually now I remember why I didn't do "force push"! In one of my PRs to the Angular UI Bootstrap project I've added my own Gulp wrapper on top of their Grunt tasks but they wanted me to remove it. So I erased it from the git history and force pushed back. The result was the loss of all in-code comments by the maintainers and my replies to them on Github! All commits were still there and you would think the in-code comments would stay referenced from them but this does not seem how Github handles them, unfortunately. I found our discussion there useful and expected to be able to reference it in the future, so it was quite a bad surprise to see them all gone :( Since then I stay away from force push. |
Removed globals, readability, simplified or removed components - replace PR #1559
todomvc
as it promotes a bad practice. Used modular approach instead. All modules are now visible inapp.js
and named as their files, following the principle of least surprise.$filter
in controller, eliminated unnecessarily complexity.newTodo
is made a todo, rather than a todo title.