This is my UI Code
<div ng-controller="WorkFlowController" ng-init="init()">
<div ng-controller="templatecontroller">
<ul class="ng-scope" ng-click="child(1)"></ul>
</div>
</div>
This is my script in app.js
This is my parent Controller
app.controller("WorkFlowController", function ($scope) {
$scope.parentFuntion = function (TaskId) {
};
});
This is my child Controller
app.controller("templatecontroller", function ($scope) {
$scope.child = function (TaskId) {
parentFuntion(TaskId);
};
});
My issue is that,I got the id in the child controller function but not able to pass to the parent. Is it possible to pass the id to parent controller function from the child..? Please help me :) Thanks in Advance