$ionicTemplateLoader documentation and use


#1

Where can I find documentation on $ionicTemplateLoader? Also, is it a private function and shouldn’t be used by the general public?


#2
$ionicTemplateLoader.load(url)

$ionicTemplateLoader.compile(

      template: '',
      templateUrl: '',
      scope: null,
      controller: null,
      locals: {},
      appendTo: null

);

#3

the documentation is very poor :frowning:

            var url =  'templates/mytemplate.html';
            $ionicTemplateLoader.compile(
                   {
                        templateUrl: url,
                        scope:$scope,
                    }
                  ).then(function(tpl){
                       console.log(tpl.element[0]);
                       // your compiled template
                  });
           $ionicTemplateLoader.load(url).then(function(tpl){
                 console.log(tpl);
                // your uncompiled template 
           });