AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability, reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.

learn more… | top users | synonyms (3)

-1
votes
1answer
14 views

Refactoring angular code for creating forms

I am a newly developer in angular. I want to do some homework to create forms with Angular. I spent nearly a week to do it, but my teacher was not really satisfied about it. I tried to follow some web ...
-1
votes
0answers
17 views

Node.js, Angular 2, and PassportJS Seed Application [on hold]

I wrote a seed application to help developers get started using Node.js, Angular 2, Polymer web components, and PassportJS to form a basic OAuth user driven login site with Angular 2. The demo site ...
0
votes
2answers
38 views

Partitioning an array of objects into four arrays by one attribute

I have an array of API objects, below is an example of one object: ...
0
votes
1answer
44 views

Angular UI Bootstrap Modal scope

I'm trying to improve my Angular skills by writing some basic applications that use a particular feature. The following application uses the UI Bootstrap modal to add users to a list, or remove them ...
0
votes
1answer
45 views

Angular front end of chat web app

I'm using the MEAN stack to make a small chat app, which will soon support braided messaging. This is my first Angular app so I am not sure how I'm doing on the front end portion in terms of keeping ...
10
votes
1answer
398 views

Hangman learning AI

I have been learning AngularJS and have written my first app. It's a Hangman AI which learns words and guesses the solution based on the words it knows. Please look over my code and provide some ...
3
votes
1answer
38 views

Angular JSON weather app

I'm pretty new to Angular. I wrote a weather app and need my code reviewed. I especially need help on best practices for handling edge cases on the response from the JSON endpoint. Here's the HTML: ...
2
votes
2answers
74 views

AngularJS shopping cart using local storage

Two weeks ago I started writing some Javascript and AngularJS code for a customer. As a proud newby I must also be aware of the dangers on the big bad Internet. In particular vulnerabilities such as ...
2
votes
1answer
50 views

User registration factory for AngularJS + Firebase app

The goal for this code is to provide a semi-secure and privileged method of user registration via a secret code that is stored as a key in the Firebase database. Subscribers to a mailing list were ...
-1
votes
1answer
38 views

Two timeout methods

I found there are two methods to code an if-else statement with a timeout function. Two of these scripts work fine, but which ...
2
votes
1answer
38 views

Angular/bootstrap radio button directive

I found creating radio buttons in my application a bit of a hassle in terms of having to configure the HTML to do what I wanted when the user clicks/unclicks the items etc. I figured reducing it to a ...
2
votes
2answers
21 views

Member-specific object cache for Angular

I'm trying to build a reusable object cache for Angular. The goal is to: Cache objects by type Prevent collisions and conflicts Find objects by like property Ensure caches are separated by the ...
-1
votes
0answers
27 views

Angular app run wrap code in a service

How can I make this better in terms of modularity? It is working but the JWT here seems to be not good at all. I have some misconceptions about angular.run. ...
6
votes
1answer
57 views

Day, month and year clone in to one with MomentJS

There are two methods I am using here for merging day, month and year. First one ...
2
votes
1answer
65 views

100 chairs in a circle problem solving with Angular.js and visualization

Here is the problem statement: Take a second to imagine that you are in a room with 100 chairs arranged in a circle. These chairs are numbered sequentially from One to One Hundred. At some point ...
1
vote
2answers
68 views

Recreating a URL string

This is what my viewObject looks like: ...
0
votes
1answer
31 views

Displaying available destinations using Angular.JS

I wonder to know if there is any bad smell on my practice for i18n on Angular. I put the I18n translating function on Angular controller (because I don't know how to put it on HTML template file) And ...
3
votes
0answers
37 views

Updating offers based on selected products

I have some nokia mobile models with some offers. There are two objects, one for nokia models with price, another one for offers. For example I have offers for these two models: "brandname": "Nokia" ...
1
vote
1answer
63 views

Currency converter using angular.js

This is my first angular application. I am sure there must be many mistakes like coding conventions, naming conventions or implementation mistakes like what goes where. Could you please review this ...
2
votes
0answers
93 views

Bill has a hard time keeping all his promises

Description A couple days ago I created this Angular 1.x provider for my Ionic/Cordova app. I'm using webpack and babel-loader for ES6/ES2015 syntax and modules. All my provider does is "provide" an ...
2
votes
0answers
44 views

Knowledge base app using MEAN stack

I've been working on an app based on the MEAN Framework. I have got the app working but I just wasnt sure whether my coding structure and standard was good enough, meaning does it adhere to the ...
1
vote
0answers
16 views

Updating Angular JS Model [closed]

I am trying to write a basic wiki/item list that pulls data from an external API (one I set up for testing), lets you add a new item which then updates the model accordingly and posts it back to the ...
1
vote
1answer
51 views

Update / save / display values in a table

I am relatively new to Angular and need to put together an application to update / save / display values. The code is working, but I wanted your input the make sure that I am doing this 'the angular ...
5
votes
2answers
34 views

Optimize Game of Life

I'm a beginner at coding and the past days I tried to write the famous "Conway's Game of Life" in Angular.js. Right now I'm done with the code and the game works. But if the size of the playground ...
0
votes
1answer
60 views

Using basic REST API in Angular 1.x

I have built real-time markdown editor in order to learn AngularJS by practice. I think what I'm trying to do can be done a better way. Any suggestions appreciated. Here's my code: ...
4
votes
1answer
51 views

Form for registering a user

You have one form and you can register a user. It can be god or mortal, but it also requires all the information to let you save the user or the change. When you have all the registers that you want ...
0
votes
0answers
15 views

Greesemonkey script adding an angularJS http interceptor

We have a deployed website behind a reverse proxy that is not configured correctly to send the x-forward-proto header. As a result, the back-end sends some json ...
0
votes
2answers
38 views

Passing variables by values without the dreaded if/switch/eval

I have to pass a bunch of inputs and outputs between two Angular controllers and I've come up with a way to do it using $broadcast. I'm using an "if" statement to make sure the inputs match the ...
3
votes
0answers
52 views

Modular Angular structure with Browserify

I am trying to create a basic angular template where all files are sorted into a modular structure and referenced using the browserify require method. I am very new to browserify and the ...
1
vote
0answers
26 views

Angular resize directive

I have created this directive in Angular. The idea is to calculate width of height and height of specific element via style function attached to ng-style on the same element. The directive uses ...
1
vote
1answer
58 views

Web app to consume rest services and display charts accordingly

I have been an Angular developer for more than 5-6 months and mostly I learned with my experience. However, recently after submitting code to some competition, I got a feedback that AgularJS best ...
1
vote
1answer
40 views

Angular Box Color Exercise

I have completed an exercise where there are 4 different color boxes and 1 main box below them that is blank, when you click on one of the colored boxes, the main box changes to the color of the box ...
2
votes
1answer
34 views

Changing page language using a service

I'm rebuilding a basic webpage using AngularJS, and want to implement changing languages when clicking an icon. So far I've made a service called 'langService', ...
1
vote
0answers
25 views

Properly updating multiple MongoDB documents with Angular

In the app I'm creating, when a user upvotes a post, the post should be upvoted, as well as the user that wrote the post. But this updates two MongoDB documents. This presents a number of issues. I'll ...
1
vote
0answers
37 views

Approach to a “modular” sidebar

I wanted to make a sidebar for my app. The sidebar should reside inside of a state that has child states, and it should act as the navigation for those child states. The problem is that I would have ...
2
votes
0answers
69 views

Angular.js - Using Service to share data between controllers

My Application looks something like this (Screenshot). To Control the URL Routing i am using a Angular Js Router. On Click of Store of the Side Panel the StoreList Appears. And on Click of the Edit, ...
3
votes
1answer
68 views

Angular.JS table management

I am an Angular.JS beginner and this is my first application. I hope you give me some advices what to do to have better, optimized code. This application manages the data from database, shows it in ...
3
votes
0answers
26 views

Wrapping a small animation library for Angular

I've started out working on a larger project using Angular for the first time. For visual feedback, I'm using Waves (Github) (you can see a demo page here). The standard way to use Waves is to ...
0
votes
0answers
44 views

Angular Pagination Directive

I wrote this small pagination directive after having to do something similar for an app I'm writing. For the app I wanted something that would be flexible and could be reused just about anywhere. ...
1
vote
2answers
60 views

Checking if an element exists in an array efficiently and return it

I am writing a function for my node/angular app that will prompt the user with a random question that he was not asked before. To achieve this I wrote this function: ...
4
votes
0answers
89 views

AngularJs Module Run Block, Configuration, and Route Definition

My AngularJs app is currently working fine. I'm working on modularity, refining my code design, and making it more readable. I have a app.js file that contains the ...
4
votes
0answers
42 views

Angular controller scope inheritance vs service

On my site I have a navbar component that I want to customize for each and every ng-view I end up loading. Currently I'm doing ...
-1
votes
1answer
50 views

Angular JS $HTTP for nested array

I'm using a factory for my $http get requests. When I pull single json objects from the $http, it works pretty quickly I now have items coming through as an array. It is very inefficient, & ...
6
votes
1answer
65 views

An object exposed to directives that need to track changes on it

This is an object exposed to the view and is being used on directives within the same view. The directives need to track changes on the ctrl.filters.applied object. ...
4
votes
1answer
43 views

Angular controller without single responsability

I'm new in cordova / angularJS and I wonder how much responsibility a controller can have. This particular one validates users entry data, display messaging, takes pictures calling the camera API, ...
8
votes
1answer
58 views

Two AngularJS controllers for camera actions

I have the same functionality in two controllers and I want to refactor to place it in a shared method that both controllers can access. I was thinking on creating a separate service called "Camera" ...
10
votes
1answer
91 views

Handling Java instant Ajax request/respond with Angular

I am trying to build a food search app. I am using Angular and Spring. I am currently using the yelp API, but it's done on the Java side. I think what I have achieved is really bad design. It works, ...
3
votes
1answer
57 views

Entity Framework Code First Softball Stats Database Schema

I am creating a website for my buddies and I to track all of our offensive softball stats. I am getting tired of maintaining a huge excel spreadsheet and emailing it out every week, so a website is ...
4
votes
1answer
60 views

Angular using defer and services

I have wrote some service in AngularJS that use defer, can you check my code and tell me if I getting it right? Service (I dont really like name: ...
2
votes
1answer
47 views

ngCordova plugin for audio player

I wrote a Cordova plugin for an app that I'm working on, and now I'm trying to write an Angular definition to wrap my plugin. So far, I've followed the model in ng-cordova.js: ...