Skip to content
Loading
Using templates in modal dialog in AngularJS    
  •             
  •         
  •   
  • my first attempt at running this, i got an error '$modal not defined'. when i looked that up it said that i need to inject $modal into my controller so i tried this..
    1. app.controller("AppController",  
    2. function($scope, $http, $modal) {  
    3. var t = this;  
    once i added that, i had high hopes that it was gonna work but instead i got another error..
     
    '$injector:unpr Unknown Provider'.
     
    every example makes it sound this simple but i can't get it to work. any help would be much appreciated. 

    2 Replies

    Know the answer? Post it — somebody with the same question will find it here.