Tag: javascript

58 votes
8 answers
2.6K views
How to display length of filtered ng-repeat data

I have a data array which contains many objects (JSON format). The following can be assumed as the contents o

avatar
Denese
0 1 0 9
asked 07 September, 2021
54 votes
18 answers
1K views
AngularJS 1.2 $injector:modulerr

When using angular 1.2 instead of 1.07 the following piece of code is not valid anymore, why? 'use stric

avatar
Virgil
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
906 views
Working with select using AngularJS's ng-options

I have read about it in other posts, but I couldn't figure it out. I have an array, $scope.items = [

avatar
Corrin
0 1 0 9
asked 07 September, 2021
59 votes
11 answers
792 views
Watch multiple $scope attributes

Is there a way to subscribe to events on multiple objects using $watch E.g. $scope.$watch('item1, item2

avatar
Karolyn
0 1 0 9
asked 07 September, 2021
61 votes
10 answers
1.5K views
AngularJS : Initialize service with asynchronous data

I have an AngularJS service that I want to initialize with some asynchronous data. Something like this: myMod

avatar
Omar
0 1 0 9
asked 07 September, 2021
57 votes
6 answers
2.7K views
Complex nesting of partials and templates

My question involves how to go about dealing with complex nesting of templates (also called partials) in an An

avatar
Arline
0 1 0 9
asked 07 September, 2021
64 votes
10 answers
3K views
What is the difference between Polymer elements and AngularJS directives?

On the Polymer Getting Started page, we see an example of Polymer in action: <html> <head>

avatar
Roger
0 1 0 9
asked 07 September, 2021
58 votes
27 answers
435 views
How do I set the value property in AngularJS&apos; ng-options?

Here is what seems to be bothering a lot of people (including me). When using the ng-options directive in Ang

avatar
Gigi
0 1 0 9
asked 07 September, 2021
59 votes
14 answers
3K views
Can one AngularJS controller call another?

Is it possible to have one controller use another? For example: This HTML document simply prints a message d

avatar
Hallie
0 1 0 9
asked 07 September, 2021
61 votes
7 answers
1.7K views
AngularJS passing data to $http.get request

I have a function which does a http POST request. The code is specified below. This works fine. $http({ u

avatar
Robt
0 1 0 9
asked 07 September, 2021
53 votes
29 answers
438 views
How do I bind to list of checkbox values with AngularJS?

I have a few checkboxes: <input type='checkbox' value="apple" checked> <input type='c

avatar
Dwain
0 1 0 9
asked 07 September, 2021
56 votes
17 answers
711 views
Insert HTML into view from AngularJS controller

Is it possible to create an HTML fragment in an AngularJS controller and have this HTML shown in the view? Th

avatar
Keith
0 1 0 9
asked 07 September, 2021
57 votes
12 answers
2.6K views
Working with $scope.$emit and $scope.$on

How can I send my $scope object from one controller to another using .$emit and .$on methods? function firstC

avatar
Don
0 1 0 9
asked 07 September, 2021
48 votes
3 answers
1K views
What are the nuances of scope prototypal / prototypical inheritance in AngularJS?

The API Reference Scope page says: A scope can inherit from a parent scope. The Developer Guide Scope pa

avatar
Benton
0 1 0 9
asked 07 September, 2021
60 votes
15 answers
1.4K views
What is the difference between angular-route and angular-ui-router?

I'm planning to use AngularJS in my big applications. So I'm in the process to find out the right mo

avatar
Cortez
0 1 0 9
asked 07 September, 2021
57 votes
14 answers
1.5K views
How does data binding work in AngularJS?

How does data binding work in the AngularJS framework? I haven't found technical details on their site.

avatar
Clarice
0 1 0 9
asked 07 September, 2021
62 votes
10 answers
315 views
How To Include CSS and jQuery in my WordPress plugin?

How To Include CSS and jQuery in my WordPress plugin ?

avatar
Robyn
0 1 0 9
asked 07 September, 2021
51 votes
3 answers
2.5K views
JointsWP4 (SASS): Changing Properties in Sticky

TL;DR: Is Sticky actually able to react to changes I give through JavaScript? If so, how? (The project is usi

avatar
Fabian
0 1 0 9
asked 07 September, 2021
57 votes
4 answers
830 views
Best place to insert the Google Analytics code

Where’s the best place to insert the Google Analytics code in WordPress, header or footer? I prefer

avatar
Arline
0 1 0 9
asked 07 September, 2021
48 votes
30 answers
439 views
Render basic HTML view?

I have a basic node.js app that I am trying to get off the ground using Express framework. I have a views fol

avatar
Clarice
0 1 0 9
asked 07 September, 2021