benmarch / angular-bootstrap-tour

AngularJS wrapper around Bootstrap Tour
64 stars 27 forks source link

"template-url" attr doesn't run #11

Closed adibalcan closed 9 years ago

adibalcan commented 9 years ago

I have a template-url attr on my body (where is tour attribute) and:

        function lookupTemplate(templateUrl, scope) {

            var template = $templateCache.get(templateUrl);

            console.log(templateUrl)
            console.log(template)

            if (template) {
                return compileTemplate(template, scope);
            }

            return null;

        }

and output is:

test.html
undefined
benmarch commented 9 years ago

My apologies, this is an oversight. This won't make an $http request for the template, it will just look it up in the template cache. I have a quick fix for it, but it will require some testing. I will get it fixed as soon as possible.

benmarch commented 9 years ago

Ok this should be resolved now in 0.3.2. Let me know if it still isn't working.