I have a PHP backend. And an ng-view in the html. When something is clicked
on the header, my routeProvider fires. And in the Route Controller,
Iam doing the following
.
.
.
.
<div id="mainSheet" data-ng-view class="sheetStyle" data-ng-controller=
"galleryController"> </div>
..
.
.
.
fetchPromise = fetchMoney($routeParams);
fetchPromise.then(
function(fetchData) {
$("#mainSheet").html(fetchData);
}
.
.
.
);
Content of Fetch Data
<div id="div20150722113011IMG_3240CR2"
class="stylediv20150722113011IMG_3240CR2" style="left: 27.625px; top: 10px;
width: 315.625px; height: 191px; position: absolute; visibility: visible;">
<a href="showThisImage/20150722113011IMG_3240CR2"> <img
id="img20150722113011IMG_3240CR2" style="overflow: hidden; border: 0px;"
align="middle" src="data:image/jpeg;base64....."> </a>
</div>
fetchData as shown above also has links for which I expected routeProvider
will be invoked. On the contrary the click on the links inside fetchData
that was loaded into mainSheet, does not fire the route provider and loads
the html onto the whole browser.
Iam very new to angular:
1. Is it correct that Ioad html into the ng-view div as shown above
2. If it is ok, what could be wrong in my fetch data that could be causing
this?
--
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.