How can call a method defined in child scope from its parent scope?
function ParentCntl() { // I want to call the $scope.get here } function ChildCntl($
Let me suggest another solution:
var app = angular.module("myNoteApp", []); app.controller("ParentCntl", function($scope) { $scope.obj = {}; }); app.controller("ChildCntl", function($scope) { $scope.obj.get = function() { return "LOL"; }; });
Less code and using prototypical inheritance.
Plunk