-
Notifications
You must be signed in to change notification settings - Fork 176
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
New Feature: custom Message Element & update parameter for setErrorHTML() & setSuccessHTML() #183
Conversation
👍 This looks good @hungdoan2 See the comment. |
}; | ||
|
||
}]); | ||
``` |
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.
Do you mind giving more description about add/getMsgElement
?
This is difficult to understand,
- Show the default message element
- Show the example why we use addMsgElement
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.
ok
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.
Also, I would like to add a line
Please make sure that you understand the usage before using
add/getMsgElement
It will be perfect if you can squash your commit into more readable message. 🍺 |
@hungdoan2 I'm ready to merge the commit after you finish. |
07e5348
to
bd0d85c
Compare
@huei90 already squashed all commits & update document. |
Please rebase the master lastest code.
Yes, this is the ticket I'm working on. |
ade91d2
to
f39dd5f
Compare
@huei90 already rebased :) |
|
||
if (element.attr('no-validation-message')) { | ||
messageElem.css('display', 'none'); | ||
} else if ($validationProvider.showSuccessMessage && messageToShow) { | ||
messageElem.html('').append($compile($validationProvider.getSuccessHTML(messageToShow))(scope)); | ||
messageElem.html($validationProvider.getSuccessHTML(messageToShow, element, attrs)); |
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.
@hungdoan2 This should be rebased too. the $compile.
f39dd5f
to
b06bfd3
Compare
@huei90 hope this commit work 💪 |
@hungdoan2 Yes this works perfectly 🍻 |
@lvarayut I'm going to merge this commit, please review. |
@@ -362,3 +362,43 @@ angular.module('yourApp', ['validation']) | |||
}; | |||
}]); | |||
``` | |||
|
|||
|
|||
### **Setup Message Element in config phase** |
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.
Could you explain more in plain English? For example, "You could use this addMsgElement to ... It reduces your effort of manually putting `message-id" so on and so forth.
@hungdoan2 Would you mind to provide some unit tests covering your new functions? |
@hungdoan2 I can do the unit tests job if you want me to do it. |
@huei90 Thanks you, I'm glad to hear that, Would u might helping me with these test cases! . Actually I got a trouble with |
@hungdoan2 try @hungdoan2 This is a big feature for us, so it takes time to complete all the tasks before merging. |
@huei90 ok, I will complete my task in this week 💪 . and I'm sorry to rush you^^ |
@hungdoan2 No worry 😄 |
c0dcd13
to
65da3e7
Compare
…ML()& setSuccessHTML()
65da3e7
to
932aea2
Compare
|
||
})); //END it | ||
|
||
}); //END describe |
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 is fine 😄 👍
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 commit is almost done, I'm going to merge it now. |
New Feature: custom Message Element & update parameter for setErrorHTML() & setSuccessHTML()
New feature:
Update feature:
From
To