HI All,

I have a page portion of the Page is Working as Angular Behavioiur. I want 
to call angular controller methods from outside the Angular world.

I need perfect approach to do this. Any Solutions?

//Angular Part
var module = angular.module('something',[]);

module.controller($scope){

        this.show = function(){
              alert('show')
       }

}

//Javascript Part

var controller = angular.element('someele').controller;
controller.show();

var scope = angular.element('someele').scope;

scope.$apply();

Currently i am doing like this. I don't like this approach and in 
production may be i got some problems. Please give me perfect solution to 
achieve above senario

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to