Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

dialog message template missing? #256

Closed
sgentile opened this issue Mar 21, 2013 · 2 comments
Closed

dialog message template missing? #256

sgentile opened this issue Mar 21, 2013 · 2 comments

Comments

@sgentile
Copy link

I'm trying to duplicate the confirmation dialog, however, I'm getting an error that I'm missing a message.html template ?

var title = 'This is a message box';
var msg = 'This is the content of the message box';
var btns = [{result:'cancel', label: 'Cancel'}, {result:'ok', label: 'OK', cssClass: 'btn-primary'}];

$dialog.messageBox(title, msg, btns)
  .open()
  .then(function(result){
    if(result === 'OK'){
      new Movie.destroy({movie_id:id}, function(){
        $location.path('/movies');
      });
    }
  });
@pkozlowski-opensource
Copy link
Member

@sgentile a template for a message box is well present in the repo: https://github.com/angular-ui/bootstrap/blob/master/template/dialog/message.html
and should be part of the build file with bundled templates (ui-bootstrap-tpls-0.2.0.min.js) as described here:
https://github.com/angular-ui/bootstrap/tree/gh-pages#build-files

Are you sure that you are including ui-bootstrap-tpls-0.2.0.min.js and not ui-bootstrap-0.2.0.min.js for example?

If it is not problem of the included file, than please create a plunk demonstrating the issue.

@sgentile
Copy link
Author

Thanks - that did the trick - I was not using the correct js file - I had just grabbed the js off - not the build

Thanks again!

codedogfish pushed a commit to codedogfish/angular-ui-bootstrap that referenced this issue Sep 15, 2015
Add possibility to find value according to a property of the model
codedogfish pushed a commit to codedogfish/angular-ui-bootstrap that referenced this issue Sep 15, 2015
codedogfish pushed a commit to codedogfish/angular-ui-bootstrap that referenced this issue Sep 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants