All Questions
Tagged with javascript angular.js
326 questions
1
vote
1
answer
70
views
2
votes
1
answer
492
views
Is returning promise form angular service bad?
What is the problem when I return a promise from angular service instead of Observable?
If it's a matter of any manipulation or side-effect, that I can easily do ...
4
votes
2
answers
395
views
Blogging application with Codeigniter back-end and AngularJS front-end
I am working on a blog application with Codeigniter 3.1.8 and AngularJS v1.7.8.
The Dashboard of the application is "pure" Codeigniter, with Models, Controllers, and views, while the fronted is made ...
2
votes
1
answer
76
views
CSV-simplified: A small open source project
I'm working on a small open source project called CSV-simplified for a course I'm taking (Bloc), and I'm looking for some feedback and potential collaborators. I don't actually know an programmers, so ...
2
votes
1
answer
551
views
Paginated AngularJS posts application
I have made a small application that displays a posts JSON in the form of cards, with the help of AngularJS and Twitter Bootstrap 4.
The application has an interface for pagination and there are ...
2
votes
1
answer
80
views
show/hide components
The following code is used to show/hide components in an AngularJS app:
...
2
votes
1
answer
82
views
Comparing JSON documents for changes to values
Please go through below code and improve the quality by reducing the IF conditions:
I have 2 jsons, first one is the source and second one is the updated json. I have to compare both values and set ...
2
votes
1
answer
4k
views
Script to load controllers dynamically for AngularJS
I would like to hear your thoughts, idea's or feedback on the following code.
Ive added to code to github.
https://github.com/redbullzuiper/angularjs-dynamic-controllers
Usually when you attach a ...
2
votes
1
answer
120
views
A simple AngularJS application for counting the number of gallons of paint
I created a simple Angular JS application for calculation gallons of paint needed to paint the ceiling of a room.
I assume one gallon covers 350 square feet and use it as a constant.
Also, I round up ...
0
votes
1
answer
57
views
Deep custom AngularJS Filter
I need to filter projects using a searchbar, it should filter all properties of the projects with a few exceptions. It's working, but it's extremely slow, where can I make optimizations?
The "_" is ...
2
votes
1
answer
323
views
Laravel Single Page Application Using Angular Js
I have created a Laravel Single Page Application using Angular Js 1.3.14 by learning tutorials in the websites.
index.php:
...
2
votes
3
answers
69
views
Collecting a list of documents from a factory for an AngularJS controller
With this controller I'm injecting myFactory and using Array.push() to add the array ...
0
votes
1
answer
8k
views
Move an element up / down an array in Javascript
I have an array called list bound to the current application scope $scope that is a user order-able list of UI components. When ...
1
vote
1
answer
83
views
Chaining three promises in Angular.JS
I have demonstrated promise chaining where promise's p1,p2,p3 has to be resolved synchronously.
The code below is using angular.js 1, and here P3 is resolved then P2 and then P1.
...
2
votes
1
answer
121
views
AngularJS - Making Factory and Controllers DRY
The following code works, but:
The service makes multiple API calls, the functions are very similar with a lot of code duplication. The same is true for the controllers- very similar code with only ...