Maybe this help you https://egghead.io/lessons/angularjs-sharing-data-between-controllers
Márcio Gasparotto On Tue, Jul 15, 2014 at 3:33 PM, <[email protected]> wrote: > how to use a controller's property to HTML <div> which ng-controller is > different. > > js: > > Module > var eventsApp = angular.module('eventsApp',['ngSanitize']); > > Controller 1: > eventsApp.controller('EventController', function ($scope) { > > name:'hemel' > } > > Controller 2: > eventsApp.controller('EditEventController', function ($scope) { > > > } > > HTML: > > <div ng-controller="EditEventController"> > {{ event.name }} > </div> > > How can i use name property in EditEventController assigned <div> > > Thanks in Advance. > > -- > 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. > -- 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.
