Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ngModule.service('sarcasticConfirmationMessage', [ function () {
- var messages = [
- "Are you sure?",
- "You promise?",
- "Stuff could happen... Are you sure?",
- "Does this feel like the right thing to do?",
- "You sure of that?",
- "100%?",
- "Do you guarantee that you wanna do this?"
- ];
- this.getOne = function () {
- return messages[_.random(messages.length)];
- };
- this.getSome = function (howMany) {
- return _.take(_.shuffle(messages), howMany);
- };
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement