I have asked the question on stackoverflow 
<http://stackoverflow.com/questions/33660092/error-loading-template-angularjs-ui-boostrap>
.

I have ui-bootstrap-tpls-0.14.3.min.js in WebContentfolder in my app. My 
jsp is in WEB-INF->jsp->content.jsp. I have included the necessary files. 
What I don't understand is the template, should I create a new template 
file or would it suffice if the code is in content.jsp.

All I see is this exception 
http://localhost:10039/.{contextRoot}/myModalContent.html 
Failed to load resource: the server responded with a status of 404 (Not 
Found) in the developer console. I don't understand how the templatecache 
is working. What am I missing here to make it work



This is the code I have in my* content.jsp*
<script type="text/ng-template" id=
"${renderRequest.contextPath}/myModalContent.html">
        <div class="modal-header">
            <h3 class="modal-title">Results <small>Total Records: <strong>{{
allrecords.length}}</strong></small></h3>
        </div>
        <div class="modal-body">
            <p>Your selection: {{selected}}</p>
            <p>Displaying records: {{startval}} - {{endval}}</p>
            <ol start="{{startval}}">
              <li ng-repeat="record in allrecords.slice(startval-1, endval)"
>{{record.Name}}</li>
            </ol>
        </div>
        <div class="modal-footer">
            <button class="btn btn-warning" ng-click="cancel()">Cancel<
/button>
        </div>
    </script>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to