Thanks for the reply. Following additional code fixed the issue.

app.controller('defaultController', function ($scope, $templateCache,
$http) {
    console.log($templateCache.info());
    $http.get("templates/About.html", {
        cache: true
    }).then(function (resp) {
        //console.log(resp.data);
        *$templateCache.put("templates/About.html", resp.data)*
    });
});


On Sun, Jul 16, 2017 at 8:18 PM, Sander Elias <[email protected]> wrote:

> Hi Prayag,
>
> There are quite a few tools out there
> <https://www.npmjs.com/search?q=angular%20template%20cache&page=1> that
> let you grab your templates and compile them to JS, is there an reason you
> are not using one of those? This would give you much better control on this.
>
>
> Regards
> Sander
>
>
>
>
>
>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to