AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability and reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.
0
votes
0answers
9 views
Angular 2 with SharePoint 2013 web part development [on hold]
I want to develop web part for SharePoint 2013 farm solution using WCF custom Rest Services that will get data from content database using server object model and to consume those services in web part ...
-1
votes
0answers
35 views
Working with JSON arrays with no keys in angularjs
I'm working with a cube that is exporting arrays that are essentially crosstabs of two columns with a third value indicating the value of the cross section. I'm pretty new to angularjs (and JavaScript ...
1
vote
0answers
24 views
Can't separate code, angular 1 component router
I'm trying to organize my code a bit differently than the tutorial for component routing. Quite simply I want to my app to have this structure.
app.js
-components/
+-settings/
+-settings.js
...
5
votes
2answers
76 views
Where to put the Angular app in a ASP.NET Web API solution?
I'm starting a greenfield app and I want to use ASP.NET (4.6) and Angular 2. For the backend I have created a project in Visual Studio, and now I'm wondering where to put the Angular app. I really ...
1
vote
2answers
80 views
Can one html page with web services replace current server-client technology?
If I have everything I need from the server in REST Api's, is it possible to replace my existing asp.net app by writing ONE single html page (embedded with Angular templates) invoking the web services ...
2
votes
2answers
76 views
Client-side Rendering vs JSP's for Spring MVC Front End Dev
Firstly, a note on the app I'm about to discuss: It's quite large, on the order of magnitude of a service app like Airbnb -- i.e., it's not just a static web page, it is a full web application. It's ...
0
votes
0answers
15 views
Angular2: Do services exclusively handle getting/updating models?
I'm testing the waters of Angular 2 with an app that manages car dealer inventory. Suppose I have a simple model:
export class Car {
id: number;
make: string;
model: string;
color: string;
}
...
0
votes
0answers
31 views
In AngularJS, if we use a factory object as the data store, should all directives be responsible for watching on it?
I worked on a project using AngularJS where we add, edit, or remove data from a factory object (which is also called a service object, and therefore is a singleton object).
The left side of the web ...
1
vote
1answer
67 views
Best practice for storing external text to then place in html
Sorry if I'm not explaining the question well in the title, I'm not sure of the correct lingo. Let me give you an example instead.
So this is a normal HTML file.
<span>Well to the ...
2
votes
1answer
73 views
Is there any reason to use id= or name= on AngularJS directives?
I have just noticed that I am coding stuff like this:
<input type="text" ng-model="userName" id="userName" name="userName" />
And it occurs to me that I have access to the data though ...
1
vote
0answers
55 views
Code smell in AngularJS custom directive
In the below code.
<!DOCTYPE html>
<html ng-app="app10" ng-cloak>
<head>
<title>Custom directives</title>
<style>
[ng\:cloak], ...
1
vote
1answer
33 views
Where should my service do it's data fetch?
I have an angular service that fetches data that will be used by multiple controllers. I only want to fetch the data from the db once and then have the service store the data in an object which ...
0
votes
0answers
16 views
Rightness of reducing dependencies by grouping them for an application
This question is not technology specific althought a technology specific answer is welcome. Furthermore i'm asking about a design problem for an application which have (in my opinion) not the same ...
-2
votes
2answers
162 views
Angular JS vs Modern MVC frameworks
I might be wrong for some things here, but here is what I recently though about.
Modern frameworks MVC such as ASP.NET MVC 5, CakePHP, Java Spring etc. has their logic clearly separated into Models ...
0
votes
0answers
76 views
In what situation will AngularJS caching the DOM element be useful when using ngRepeat?
I think one of the things a developer faces when using ngRepeat, is that the when the i has the same value in an array, as in ng-repeat="i in myCtrl.arr", then:
angular.js:13236 Error: ...
0
votes
1answer
74 views
How to create data driven views in AngularJS?
I am building a support web front-end for our team from where we can perform various support functions for a number of different sites at which our products run. This typically involves running some ...
1
vote
4answers
118 views
How and where to test if the JSON request objects generated by the front-end is valid
We have built a complex Angular application that sends multiple HTTP request to a REST service that is also built in house.
Since both the frontend and the backend is being developed in parallel, ...
1
vote
0answers
86 views
Securing a REST API based on authentication with external site
I have a website with an already-established authentication system. Once a user logs on to it, one of the features is a statistics application based on AngularJS.
The app communicates with an ...
0
votes
1answer
78 views
Accessing data from private API (with Basic Auth credentials) using Angular JS
I have been tasked with connecting an existing Angularjs app to a third party service via API using Basic Auth credentials I got from the third party website.
I am not as experienced with Angular and ...
0
votes
0answers
58 views
Testing $stateChangeStart
I'm trying to figure out how to test my $rootScope.$on.$stateChangeStart event. Authentication service already has unit tests to check it's functionality, but I'm really trying to do is set up a test ...
1
vote
2answers
75 views
Software design for Client side form validation
So Im using the MEAN framework to build my web app. Like all other apps it requires a login & registration.
My Approach so far has been:
Every major function of my app has its own AngularJS ...
0
votes
1answer
60 views
if ngModel is for changeable element and ngBind is for unchangeable element, couldn't they just both have the same name?
Is it true that ngBind and ngModel are very similar: bind the model (the data) the either static text element or changeable element, such as text input box, select element, or textarea.
In that case, ...
1
vote
1answer
241 views
JavaScript & AngularJs Modules Implementation technique and structure
So Im building an app and I'm trying to implement the structure of the app so that its robust and scalable in future.
My app is mostly divided into JavaScript Modules (revealing pattern):
// ...
0
votes
0answers
50 views
Advantages of having multiple apps or sub apps SPAs in AngularJS SPA
Having you application comprise of multiple child apps is good for readability and debugging.
However, other than that is there any advantage over performance or memory management or Garbage ...
4
votes
1answer
79 views
In SPA what happens in terms of memory and performance when user hops across all the pages?
Imagine a humongous web aplication built using Single Page Application framework such as AngularJS. With its each route it downloads a couple of HTML template files. Each of these template files ...
0
votes
1answer
155 views
If AngularJS already takes care of the MVC, would using ReactJS be needed if it is just the View part?
I heard that AngularJS is becoming quite popular, and at the same time ReactJS is also. But if AngularJS already takes care of MVC with 2 way binding between model and view, would ReactJS actually be ...
0
votes
0answers
78 views
AngularJS and NodeJS required version
I am new to the world of Javascript and their frameworks, and I feel a bit lost with this. I am trying to follow the official toutorial of AngularJS. In one of the first sections, it reads
Install ...
-2
votes
1answer
71 views
Is it better to have a single, more general directive or multiple type based directives in Angular?
Is it considered good practice to have:
Single, general directive that has multiple data-* parameters and serial data is binded from controller
Single, general directive that has config and serial ...
2
votes
3answers
175 views
Angular JS style guide when declaring variables
I'm new to Angular JS and working on a project with "legacy" Angular JS code. The code is about a year or half a year old. I often see stuff like this:
var _link;
_link = "http://localhost";
Or:
...
3
votes
1answer
258 views
ng-model for status picklist [closed]
I am the beginner to AngularJs. Finding difficult to understand the concept of ng-model.
I have a controller with $scope.statusPickList=["Planning" "Execution" "Closed"];
How this has to be used in ...
2
votes
0answers
76 views
Displaying complex objects in Angular
What in your opinion is the best way to display complex objects in Angular?
You have some sort of return from a service used in multiple places in a app and you might have to display multiple ...
-2
votes
1answer
105 views
About Node serving dynamic pages
I am doing a tech test for a job (Web Development) and in the test I need to get data from an API and there is this conditions for the server:
Focus on client-side (AngularJS)
nodeJS
The server must ...
2
votes
0answers
153 views
Analysis of ways to control/refresh a directive with isolated scope from parent controller
I'm asking this question because there doesn't seem to be a "recommended" approach for this.
If a page had a directive with isolated scope, and if the directive needs to update itself after an event ...
0
votes
0answers
30 views
Where should user input be validated? [duplicate]
I am working on a webbased user interface using AngularJS. As a database I am using MongoDB which can be accessed through an Python-eve-API.
The API is able to validate the passed data as stated in ...
0
votes
1answer
133 views
How can I use a framework like Bootstrap when I already have designs from a design team [closed]
We are about to start an AngularJS project. In fact, the CMS will be AEM (Adobe Experience Manager). I'm now looking into the CSS/layout framework, and whether its worth using something like ...
2
votes
0answers
84 views
Upload, convert, and store multiple different product data feeds into a database
I'm not sure if this right location for this question, but here it is.
I currently have about 30 different CSV or TXT product data feeds. I am trying to build a tool to
1) upload each feed
2) ...
0
votes
0answers
17 views
Design for responsive app tracker
I'm working a SPA that tracks a number of applications which are scheduled to run on a given computer. I'm creating UI that looks similar to a daily planner.
So at the top of the page I have two ...
1
vote
1answer
89 views
Is the controller in Angular and ASP.NET MVC aimed to the same?
Is the controller in Angular and ASP.NET MVC aimed to do the same like:
Consume services to shape the data (model) to return to the view.
Modal validation.
1
vote
1answer
728 views
.NET MVC authentication to AngularJS to .NET web API advice needed
So i am inheriting a team and a large project that should have been built with a restful back end. For the time it is only reporting and we all agree to build out a web API (separate project) with ...
1
vote
1answer
47 views
Tab management code in single-page applications acceptable violations of the DRY principle?
I have an AngularJS-based single-page app that allows the user to operate multiple items at the same time. I decided to use a multi-tab UI implemented in custom code.
However, the user begin to ask ...
0
votes
0answers
200 views
angularJS code sharing across hybrid Ionic app and regular mobile website
Ok, so in our 'innovation lab', there is currently a push to use Ionic, an hybrid app framework built on top of Cordova for native access and angularJS for the ‘web code’.
There are also some ...
1
vote
0answers
495 views
Multi-page application using angularjs
I want to create a multi-page application using angularjs, because i want to make use of a lot of angularjs functionality, like two way binding, form validation, AJAX handling, etc. But I read from ...
2
votes
1answer
159 views
License issues re: using Angularjs and Bootstrap in a desktop app [closed]
I'm a web developer and I've been asked to write a desktop app. The languages and libraries that I'm most familiar with are standard web tools (Javascript, Angular, Bootstrap). I'd like to use these ...
3
votes
1answer
110 views
Could a view call a function of the model directly?
this is a fundamental question about MVC (in particular using AngularJS) and I've found similar questions here, but not the exact same problem:
Could the view call a function of the model, or should ...
3
votes
1answer
236 views
Best practice for angular service return value
I have a number of angular services (e.g. a user service) which make various HTTP calls and I'm wondering what the best practice would be for handling errors. For example, I could do:
function ...
1
vote
2answers
689 views
UML modeling angular controllers / factories and services
I have to create UML documentation for my upcoming project. Now I have previously worked with Java which as an object orientated language is relativly easy to design UML class diagrams for. For my ...
7
votes
1answer
691 views
Is there a reason not to use HTML5 local storage for content
On many static websites the total size of the actual text content of the most popular 20 pages would come in at under 100kb.
I would imagine that it would be possible to leverage HTML5 local storage ...
1
vote
1answer
244 views
Hard time understanding structure of web apps w JS frameworks? [closed]
I'm having a difficult time understanding how web applications work. Please help me understand without giving me google definitions. Baby steps/words would be appreciated =) From what I understand so ...
1
vote
1answer
207 views
Methods of preventing SPAM with an API - AngularJS Website Contact Form
I'm exploring AngularJS and ran into an interesting question. If I develop an API to power my AngularJS website it would include public facing items such as a Contact Form. Assume an API method exists ...
1
vote
0answers
41 views
Responsive design - up to a point - and then an alternative layout
I am using AngularJs. I am unsure whether this is a pure CSS question, or needs some JS to handle logic.
Let's say that want to display a grid full of numbers - and some sort of histogram or other ...