I am new to angular js and its services so please bear with this basic question. Please read comment inside code to understand what I need.
 .controller('ctrlr1', function($scope, myservice) {
     var a = "abc";       
 })
 .controller('ctrl2', function ($scope, myservice) {
      // how to get value of a 
 })
 .service('myservice', function() {
      //what goes here?
 });
Thanks in advance
 
     
     
    