I have a module designed with this view and controller . Now , I want to move this same View and Controller to another Module ... basically want to include the functionality into another module.
Now, I have created a new controller for this module and passed the 'previously used controller's name' in it
$scope.includeViews =
[
{'title':'Info', url: appdata.baseurl +'/app/partials/profile/info.html', controller : 'infoData'}
];
Also ,, this is how i am including the 'previously used view' ..actually i am dealing wth tabs here to load the view ...its as follows
<tab heading="{{includeViews[0].title}}">
<div class="slide-animate-container">
<div class="slide-animate" ng-include="includeViews[0].url" ng-controller="infoData"></div>
</div>
</tab>
The scope is not getting copied when using ng-include ..so I am not able to fetch the Data
Please tell me how do i deal with this , I dont want to code new as i am copying the same functionality of one module into another .. Thanks !