I am writing a sample application using angularjs. i got an error mentioned below on chrome browser.   Error is     Error: [ng:areq] http://errors.angularjs.org/1.3.0-beta.17/ng/areq?p0=ContactController&p1=not%20a%20function%2C%20got%20undefin...
Without using a service or constructing watchers in the parent controller, how would one give children states access to the main controller's $scope.     .state("main", {       controller:'mainController',       url:"/main&#...
I am learning Angular.js and I am not able to figure out whats wrong with this simple code. It seems to look fine but giving me following error.  **Error**: Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.3.14/$injector/modulerr?...
I have this module routes:  var mainModule = angular.module('lpConnect', []).     config(['$routeProvider', function ($routeProvider) {     $routeProvider.         when('/home', {template:'views/home.html', controlle...
One of the interesting things AngularJS can do is apply a filter to a particular databinding expression, which is a convenient way to apply, for example, culture-specific currency or date formatting of a model's properties. It is also nice to h...
I want to watch for changes in a dictionary, but for some reason watch callback is not called.  Here is a controller that I use:  function MyController($scope) {     $scope.form = {         name: 'my name',         surname: 'surname'...
I have two controllers one wrapped within another. Now I know the child scope inherits properties from the parent scope but is there a way to update the parent scope variable? So far I have not come across any obvious solutions.  In my situation I...
How to subscribe on property change when using controller as syntax?  controller('TestCtrl', function ($scope) {   this.name = 'Max';   this.changeName = function () {     this.name = new Date();   }   // not working          $scope...
I'm writing an angularJS app. In this particular controller, I open a new browser window through the $window.open service. But in the new window, all the $scope variables are lost.  I tried to use window.parent but this doesn't work. In fac...
I'm trying to find out how I can stop a DOM element from binding data from the scope in angular.   I know that you could do this with if statements and all, but is there a genuine & permanent way to stop binding a element in angular but keep...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.