-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(comments): code is now massively less hackish
At most a single optional comment controller is instantiated now, compared with two from before. The isolate scopes are now being made use of more correctly, rather than eval- uating expressions from the parent scope. This simplifies the code somewhat, and makes it considerably easier to grasp for beginners. In general the library has been simplified somewhat, and should be that much more effective from now on. It is still desirable to make use of the sortBy attributes, so that more can be done.
- Loading branch information
Caitlin Potter
committed
Oct 22, 2013
1 parent
9355f72
commit f1d26b8
Showing
3 changed files
with
85 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div class="comments"> | ||
<comment ng-repeat="comment in self.commentData" comment-data="comment"></comment> | ||
<comment ng-repeat="comment in comments" comment-data="comment"></comment> | ||
</div> |