Tagged Questions
1
vote
0answers
17 views
How to share data in between two controllers using angular JS?
I am new to angular JS and Javascript. I am working on a angularJS project and In project i am using several modules like Secreport -> secreportpage -> secchart.
I passed data from mainCtrl to ...
0
votes
0answers
47 views
Understanding ng-model for Select options
My controller:
$scope.taglist = [{"name":"Fruit_Type","value":"0"},
{"name":"Leaves_Arrangment","value":"?"},
{"name":"Leaves_Margin","value":"?"},
...
1
vote
1answer
42 views
Keeping a views state
I have an app that filters out objects from a DB based on a simple form with select options, with each change in the form I get a list from the server with the filtered objects.
When the list ...
0
votes
1answer
39 views
Cannot set property 'var' of undefined at method
I'm doing something really simple here but getting an error saying
TypeError: Cannot set property 'question' of undefined
at setQuestion
and I cannot figure out what's causing it. I'm new ...
0
votes
1answer
21 views
Cannot read property '$on' of undefined
Trying to use events in AngularJS but getting the error stated in the title.
Followed this example which seems pretty straight forward so not really sure about what might be causing the error.
My ...
0
votes
1answer
42 views
Angular - update badge number in template
This is my controller:
.controller('FilterCtrl', function($scope, $http, tagsService, speciesService) {
$scope.tags = tagsService.getTags();
$scope.fileNameChanged = function(event) {
...
1
vote
1answer
34 views
Creating Dynamic ng-model in AngularJS
Following is the working code - http://plnkr.co/edit/6lRhiTd1BrKRdThY0WNB?p=preview
In this if you select the number from drop down and fill data then click and check console you will see the result ...
1
vote
1answer
39 views
Select in Angular JS - I need the element and value attribute to be the same
I have a json like this, stored in $scope.result:
{ "tips":["p1","p2","p3","p4"],"actualTip":"p4"}
And I need to do a comboBox with Angular. I did this:
<select class="form-control" id="one" ...
0
votes
0answers
13 views
How do I clear the jqxinput textbox in angular method?
FYI : I have all my scripts and other necessary files loaded.
In my controller, I have:
mainApp.controller('secureLoginController', ['$scope', '$state', 'mainWebService', function($scope, $state, ...
0
votes
2answers
57 views
onDblclick of a directive: toggle its boolean attribute value
I have a directive called contentEditable which is also referencing the html5 attr ::docs::.
<p contentEditable="{{edit}}" ng-model="pages.title">default</p>
on dblclick of directive, ...
0
votes
1answer
118 views
how to display barcode scan result on html instead of an alert in angularjs + Ionic
Hi I am working one of my project Inventory management, where user scan the any product barcode and get the value and use it. I have successfully achieved that using following code:
...
1
vote
1answer
40 views
Difference between ways to declare a scope in a directive (ways shown inside)
I'm new to AngularJS, JavaScript and HTML.
My question is: ¿What is the difference between the four ways to declare the scope in a directive?
I'm going to show the way and then write what I think ...
0
votes
0answers
28 views
Angular Template does not call the <script>. Anyway around?
I want to call different script based on different template. It will be heavy to load all of the script in the index page. However, Angular Template does not execute tag.
How should I go about ...
0
votes
1answer
226 views
binding variables to compiled elements in angular Js
I am dynamically creating an element with angular. When the app initally runs using app.run() the element is created and I compile the element, after compiling the element I add an ng-show="active" ...
2
votes
1answer
792 views
How can I use HTML5 geolocation in angularjs
How can I use HTML5 geolocation in angularjs?? I can get it using HTML55; but how can I pass it to angularjs scope in controller??? any sample jsfiddle will save my day!
0
votes
1answer
420 views
How to pass ng-model value to anchor tag which opens an HTML overlay?
I have a scenario where I display many posts on a HTML page using AngularJS and every post, when clicked, shows associated data in an overlay. Data is displayed on main page using ng-repeat tag and ...
0
votes
1answer
110 views
Passing data between controllers using service and confusion with using [ '$scope' , 'service' , function($scope, service){}]
I am badly stuck with this problem of passing data from one controller to other in angularJS. Before my code was: whenever I click on templateController's div, it would trigger setTemplate with the ...
0
votes
2answers
2k views
Angular JS : updating object values in scope after the backend call
I have an angular js html page having a HTML table. This has some 100 rows. The user selects 10 or 15 rows and makes a backend call. The backend call is made using $.ajax({...}) to do the processing ...
20
votes
7answers
13k views
Angular JS Scaling & Performance
We are pounding our heads against performance issues with an Angular app we are building for a bank.
Unfortunately, it is a breach of contract to show snippets of the code. Regardless, I can describe ...
3
votes
2answers
185 views
Is there a good way to 'Freeze' Angular scopes and children that are not being used
I am working on a project that basically consists of complicated form containers repeated in an ng-repeat. Each of these forms has enough functionality that it could easily be its own angular app, but ...
5
votes
3answers
3k views
AngularJS - Access directive's isolate scope from within transcluded content
I'm not sure if this is actually possible, but I'm essentially wanting a reverse of the '&' isolate scope in AngularJS. Here is a Plunkr to demonstrate.
Basically, I have a custom directive set ...