The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
2answers
35 views

How to call a resource in a service through a controller in angularjs

I want to send the data in my controller to the database via service, but I use a $resource in a service and I don't know how to call it from the controller, below is my controller, ...
0
votes
1answer
28 views

Using $scope and 'this' in the controller with Angular UI Router

Regarding $scope and this when using ui-router, If I am using the controllerAs syntax, ie: .config(['$stateProvider', function($stateProvider) { $stateProvider .state('app.login', { ...
0
votes
1answer
38 views

Directive, Link Function, Array, DataBinding Order of things is ambiguous

I have a problem which is very challenging, that i don't even know how to define, so I'm going to give an example and hopefully you will be able to explain what am i doing wrong. My HTML is: <tr ...
0
votes
1answer
47 views

Why “this” is assigned to a variable inside the controller?

I am new to Angular and I couldn't get why we assign this to a variable inside the controller. angular.module('NoteWrangler') .controller('NoteCreateController', function($http){ var controller = ...
0
votes
1answer
23 views

Open multiple instances of same controller with different data

I have an angular app that allows the users to open details about a product on a modal window. The modal has corresponding url with it (/product/:id). A requirement of the app is that the users should ...
0
votes
1answer
35 views

Trigger Iron Router Route from Angular Controller - Meteor

I have a dynamic table with one edit button per row created with Meteor.js. When clicked, I need to route to another page. I´ve tried using $location.url(/mypage) but it produces the angular like ...
1
vote
0answers
55 views

Creating PDF and HTML output using PhantomJS and evaluate Angular directives to be included both in HTMl and PDF output

I am trying to append a angular directive inside HTML so that PhantomJS creates the HTML and PDF output. The snippet is below: Code where I am trying to append Angular directive is below: function ...
1
vote
0answers
47 views

Angular ng-model not updating when setting text on input

I'm having a bit of trouble with angular was hoping you could lend me a hand. I have this HTML code: </head> <body ng-app="starter" ng-controller="editarCtrl"> <ion-pane> ...
0
votes
0answers
30 views

Passing a method from directive to factory

I'm trying to pass a method that is defined in the controller, via a directive to a factory. I seem not to be able to fully understand scoping or the best way to do this. HTML: <div ...
0
votes
0answers
28 views

Multiple dependent controllers/directives on a single page?

I want to display something like this in a single page. The complication is that this data comes from 4 different sources. City One Property One Property Two Property Three A ...
0
votes
0answers
22 views

Covert pure angular to ecma6 plus angular

I want to build dynamic controllers in eccma script code.I'll show a example by angular code.But i couldn't understand how to implement this in eccma6. let module = 'app.core.checka'; class ...
0
votes
0answers
19 views

C3 graphs all in one Angular controller

What's the advantages, and costs, of the different practices? To implement all graphs from project in one Angular controller (jsfiddle) or implement each of them in separate controller? var myApp = ...
0
votes
0answers
59 views

How to write controllers for custom directive in AngularJS and ionic?

I have a ionic directive ion-md-input. I want to create a custom directive out of it. The task at hand are validating that input field is of 6 characters and passing it to a $http.post. Sounds Simple. ...
0
votes
0answers
9 views

Open multiple modals from the same state, each with different data

This is the scenario: I have an angular app that allows the users to open details about a product on a modal window. The modal has corresponding url with it (/product/:id). A requirement of the app is ...
-1
votes
0answers
21 views

Use controller and directive on the same html tag and share their scope

I was wondering if its OK to use something like: <body my-directive ng-controller="myCtrl as main"> If its OK to use the above syntax, how can i share scopes or variables. E.g use(and change) ...