Skip to content

Instantly share code, notes, and snippets.

@charandas
Created June 7, 2014 17:46
Show Gist options
  • Save charandas/6825b1f2d81dadd9fc89 to your computer and use it in GitHub Desktop.
Save charandas/6825b1f2d81dadd9fc89 to your computer and use it in GitHub Desktop.
Using $modal wrapper with extraParams
var notification =
{
title: 'We\'re sorry - we are unable to read your info!',
messages: [
{ text: 'Please see a representative.', className: 'lead' },
{ text: 'This screen will automatically timeout in 30 seconds.' },
{ text: 'Thank you for visiting.' }
]
}
// for extraParams: notification, your ModalInstanceController can interpret a template using {{title}}, {{messages}} etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment