At a very abstract level (because the code is way too long to share here), I have a search box in an HTML file and I have a controller for that search box that does some things with the text entered in the text field. Now I want to pass the search results to a new HTML page just for the search results but for some reason this isnt working. I have the ng-controller directive in both HTML files and everything should be syntactically correct.
This worked fine when I used ng-include to include the second HTML file in the first one, but when I separated them I cant see the search results. I read somewhere on SO that separating the HTML pages as I have done creates a new $scope which is why when I use $scope.searchTerm in the controller only one of the HTML pages can see searchTerm, but I'm not sure if this is the problem.