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...
I'm trying to build a directive that takes care of adding more directives to the element it is declared on. For example, I want to build a directive that takes care of adding datepicker, datepicker-language and ng-required="true".  If I...
I'm trying to set the src attribute of an iframe from a variable and I can't get it to work...  The markup:  <div class="col-xs-12" ng-controller="AppCtrl">      <ul class="">         <li ng-repeat=...
Can anyone tell me how to include a controller from one directive in another angularJS directive. for example I have the following code  var app = angular.module('shop', []). config(['$routeProvider', function ($routeProvider) {...
I'd like to make a minor modification to a 3rd party directive (specifically Angular UI Bootstrap).  I simply want to add to the scope of the pane directive:  angular.module('ui.bootstrap.tabs', []) .controller('TabsController',...
As far as i understood ng-model sets the value for that particular element in which the model is been assigned. given that how is ng-value different from ng-model?...
Here is my app.js  route file in AngularJS  var app = angular.module('myApp', ['ngRoute', 'ngAnimate', 'toaster']); app.config(['$routeProvider',     function ($routeProvider) {         $routeProvider....
I need to perform some operations on scope and the template. It seems that I can do that in either the link function or the controller function (since both have access to the scope).  When is it the case when I have to use link function and not the...
I wanted to have the functionality of rearranging rows in a table (sorting rows using drag and drop).  And the index of the row arrangement should also change in the model.  How can I do something similar to this : http://jsfiddle.net/tzYbU/1162/ usi...
I'm having a hard time wrapping my head around how to go about doing an Angular filter to solve a problem that I'm running into.  Here's a basic example of my data structure, an array of tasks:  var tasks = [     { Title: "This is a t...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.