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 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'...
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 see in controllers that $scope has $root, what is this? How is it different from $rootScope which can be injected in the controller?...
How can I use HTML5 geolocation in angularjs? I can get it using HTML5; but how can I pass it to angularjs scope in controller? any sample jsfiddle will save my day!...
I have been trying AngularJS for a experimental project and I came along with this problem. In my html I want to display a list of items  Index.html  <h1>Some list</h1> <div ng-controller="datlist">     <div ng-repeat=...
My question is an extension to thisquestion  Getting select rows from ng-grid?  plunker - http://plnkr.co/edit/DiDitL?p=preview  I need a row to be selected on page load and I need to avoid listening to 'ngGridEventData'  calling $scope.gridO...
Is there a way to have AngularJS evaluate an expression within model data?  HTML:  <p> {{Txt}} </p>     Model:      {       Txt: "This is some text {{Rest}}"     }      {       Rest: "and this is the rest of it."     }   T...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.