Top "Angularjs-scope" questions

In AngularJS, a scope is an object that refers to the application model.

Call a method of a controller from another controller using 'scope' in AngularJS

I am trying to call a method of second controller in first controller by using scope variable. This is a …

angularjs angularjs-directive angularjs-scope
Losing scope when using ng-include

I have this module routes: var mainModule = angular.module('lpConnect', []). config(['$routeProvider', function ($routeProvider) { $routeProvider. when('/home', {template:…

javascript html angularjs angularjs-scope angularjs-ng-include
How to clear or stop timeInterval in angularjs?

I am making a demo in which I am fetching data from the server after regular intervals of time using $…

javascript angularjs angularjs-scope
Simple ng-include not working

Im playing with AngularJS for the first time, and im struggling to use ng-include for my headers and footer. Here's …

javascript html angularjs angularjs-scope
Call a controller function from a directive without isolated scope in AngularJS

I cannot seem to find a way to call a function on the parent scope from within a directive without …

angularjs angularjs-directive angularjs-scope
How do I share $scope data between states in angularjs ui-router?

Without using a service or constructing watchers in the parent controller, how would one give children states access to the …

javascript angularjs angularjs-scope angular-ui-router
Angularjs - $rootScope in directive link function

I am asking this question because I am not quite clear on how to think of rootscope as a dependency …

angularjs angularjs-directive angularjs-scope rootscope
angularJS: How to call child scope function in parent scope

How can call a method defined in child scope from its parent scope? function ParentCntl() { // I want to call the $…

angularjs angularjs-scope
Why is Angularjs ng-pattern not working with the following regexp?

For some reason the initialized value doesn't appear in the field, but the second field without the ng-pattern does work. …

javascript angularjs regex angularjs-scope angularjs-model
Update parent scope variable in AngularJS

I have two controllers, one wrapped within another. Now I know the child scope inherits properties from the parent scope …

javascript angularjs angularjs-scope prototype angularjs-controller