AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Whatever (MV*) capability and reduce the amount of JavaScript needed to make web applications functional. These types of applications are also frequently known as single-page ...

learn more… | top users | synonyms (2)

-1
votes
0answers
9 views

can i get a very long paragraph using Ajax ,angular 2?

can i get a very long paragraph using Ajax like 500 characters from mysql I am using ANGULAR 2 HTTP POST and PHP
0
votes
0answers
9 views

why restful api error Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) [duplicate]

I create a simple CRUD with laravel and angularjs but when the load to the angular and call the fire of laravel an error occurs Parse error: syntax error, unexpected '.', expecting '&' or ...
3
votes
1answer
22 views

Dynamically updating [checked] in Angular2

componentA.ts: @Input() array; <input type="checkbox" [checked]="array | contains: value"/> <label>{{array.length}}</label> componentB.ts: @Component({ selector: 'app-...
1
vote
2answers
14 views

loading external URL on Dashboard Content

I want to load URL( external URL 'http://google.com') in Dashboard content,I tried with this code .state('app.urlloading', { url: '/url-loading', controller:function($window){ $...
3
votes
0answers
15 views

DELETE MethodNotAllowedHttpException with IIS, AngularJS and Laravel

I am learning AngularJS 1.5.8 + Laravel 5.3.17 + PHP 7 hosted on IIS/Windows 10, following this tutorial. While sending a HTTP AngularJS $resource.delete() to Laravel, I get an error: 405 Method Not ...
3
votes
1answer
28 views

JavaScript - disable intenet connectivity

I want to test my website for offline uses, is there a way to disable website connectivity on bootstrap, before anything loads, so all data will be loaded from cache. There are many offline libs, but ...
1
vote
1answer
19 views

angularjs get template and pass variable to template

<section ng-app="app" ng-controller="ctrl"> <div id="output">{{ foo }}</div> <button ng-click="myFun()">Click me</button> </section> var app = angular....
1
vote
2answers
22 views

AngularJS - inputs in a html-table inside a form won't submit

I have a table inside a form but submit is failing. If I take the input out of the table the form submits successfully. But I must have the input inside the table. HTML <form id="edit"> &...
0
votes
0answers
13 views

has-class not getting applied through ng-repeat form validation : angularjs

<div class="col-md-12" data-ng-repeat="p in ['A1','A2','A3']"> <div class="form-group col-md-6" data-ng-class='{ "has-focus": form.model[p].hasFocus, "has-success": form....
1
vote
0answers
13 views

How to have x-Axis in years if input is in time, in SVG d3 area chart?

var input = [{1307555600000,786},{1306693800000,506},{1306693800040,986}]; // time, price I plotted it on Area chart, but on X-Axis I don't want to show all the entities, as input data is large, it ...
0
votes
0answers
9 views

How to assign value to global scope variable in controller from callback function [duplicate]

//Service code angular.module('app.service', []).factory('XmlToJsonSvc', ['$http', function($http) { return { get: function(path, callback) { $http.get(path, { transformResponse: ...
0
votes
0answers
16 views

Angular 2: Is there a way of handling Observable (async) in the Component instead of of using the pipe in the template?

I'm currently using Observable for fetching some data in an Angular 2 app, however I only want to send the data for display in my template after the request is completed. I know there is the use of "...
0
votes
0answers
24 views

iframes body mystryriously gets removed from dom

We have developed a web page editor where angularJs works hand in hand with jquery to edit a html page within an iframe the edited page is being iframed so as to not share the same javascript context....
0
votes
1answer
14 views

How to cycle through images with button clicks using Angular?

I have some images that I want to cycle through using previous/next buttons. The image is supposed to be dynamic through angular. So if you click one of the buttons it should display a different ...
4
votes
1answer
32 views

Does Angular 2 have a way to store data in a JSON file?

Is there any way to read and write data in an Angular 2 application to a JSON file?
0
votes
3answers
50 views

Single page web application design approach

Before begin, I have very little experience/knowledge in webpage development and have intermediate knowledge in common programming languages. I'm learning AngularJS(JavaScript)/HTML/CSS and trying to ...
4
votes
1answer
27 views

Not able to understand the deleting process while writing todo list in AngularJS

I am trying to write a todo application in Angularjs in the following code. function write_controller($scope){ $scope.todos = [{text:'hey all',done:false}, {text:'hello',...
1
vote
1answer
18 views

Clear shared AngularJS controller variable when ui-router state changes

In an AngularJS 1.5.8 app, I am using ui-router to navigate between pages which all use the same controller. The ng-controller attribute is applied to the body tag, and the ui-view attribute is ...
1
vote
0answers
18 views

Promise data not rendering on route state changes - ui router

For example home route shows home feed. On initial controller initialization & on page reloads. Feed data binds and renders in the view. Problem: Data does not render in the view when: ...
0
votes
0answers
8 views

PrimeNg Editor doesn't resize (angular 2)

I currently working on an Editor for an Angular 2 app and I'm having issues resizing it. In my code I alter the width property however it only reduces the body of the editor and not the toolbar, is ...
2
votes
1answer
16 views

How can I have both the before and after values of an input field available in an AngularJS controller?

I'm new to AngularJS and am struggling with this, maybe somebody can help. Let's say I have an input field with some initial value in it and I allow the user to change that value and click a submit ...
0
votes
1answer
12 views

Confirming if AngularJS is installed and working

Just following an AngularJS book to read and learn , he has created a test page like this: <!DOCTYPE HTML> <html ng-app> <head> <title> First App </title> <script src=...
-1
votes
0answers
8 views

Angularjs issue with add another texfield [on hold]

I am creating a singal page app using AngularJs and material design lite. There is a address form where user can add more address. My issue is when i add another aaddress the material design ...
0
votes
0answers
11 views

how to integrate regular username/password login with 3rd party social login for a Spring Boot + Angular single page web app?

I have a Angular + Spring boot single page web app. The server also acts as an Auth Server which issues tokens for the angular app to use to make Restful API calls. My old login flow uses a ...
0
votes
1answer
22 views

cant use ng-show and ng-hide in angular

I am trying to access data from my angular's controller. The file is as follows. The following is the scope and variables associated. The idea is that when the statusCode is 401, the invalid_login ...
1
vote
2answers
16 views

check if model changed since controller loaded

Is there an angular way of checking if a model has changed since it's initial state when the controller was loaded ? I can of course create a variable to store the initial state and compare against ...
1
vote
1answer
28 views

How to use CSS when installed from npm in Angular2

I am trying to install the below: npm install bootstrap-material-design I then added the below to my package.json "dependencies": { ... "bootstrap-material-design": "0.5.10" } So in ...
0
votes
2answers
22 views

change color to the same element angular

Hi I have the following problem, when I click on an item changes color to all elements but I need to change only the color that I clicked: <div ng-app="myApp" ng-controller="myCtrl as model"> ...
0
votes
2answers
24 views

Define vm function correctly in Controller As

I'm new in javascript and AngularJS. So... May be is a stupid question, but I have two way to define functions in javascript. In the following to controllers please look at "grupoCancha" and "...
0
votes
1answer
13 views

AngularJS change variable outside of function

I have a function in Angular that changes the center value for Google Maps when a user clicks on the map. The correct center value is then alerted to the screen but the marker does not change to that ...
0
votes
0answers
18 views

How do I pass query parameters using angular.js

I am trying to pass parameters for a cypher query. I have stepped through the sequence to xhr.send() and am passing it this data: {"query":"match (U:User {UserID: {UID}})-[:HAS_ROLES]->(R: Roles) ...
0
votes
0answers
7 views

PDF not opening in internet explorer browser in angularjs blob

I have an angular application that loads the stream in blob and displays in browser. I could use the below code to open in google chrome and firefox but not in internet explorer. I used the if ...
0
votes
1answer
12 views

Angularjs create input mask

I'm trying to create a directive to create custom mask for my input. I know there are other libreary I could use, but sometimes I need a custom input based on the company needs, for example a custom ...
0
votes
0answers
7 views

Cordova File Plugin Base64 Blob File

Okay I don't know why I'm having such a hard time with this. I'm able to use to cordova file plugin. I pull my picture library. and It outputs the picture uri. How do I convert that into a Blob or ...
0
votes
1answer
12 views

angular.js update results from varible

So I have a angular.js table (using the smart table module/plugin) and I'm trying to update it based on some data thats getting set in the window, in particular heres how the data is set out. window....
0
votes
3answers
25 views

angularjs variable in javascript

This is the first time to use angular js. The following code gives desired output: <a href="http://www.example.com/xyz/{{life.animal}}/" target="_blank">Hello </a> It opens a page: ...
0
votes
1answer
11 views

Can The Facebook Crawler See Base64 Images

I have an angular app which is rendered for bots with prerender.io. The page is properly cached with an og:image tag and the cached pages also do have images visible. When trying to share the page, I ...
0
votes
0answers
7 views

formidable.IncomingForm upload a pictures without setting the headers so soon

How do I use https://github.com/felixge/node-formidable upload the file on Nodejs and not set the headers so soon? router.post('/upload/pictures', function (req, res, next) { var temp_path = ''; ...
0
votes
0answers
6 views

Unknown Exception in uploading file using ngCordova

I'm working on a cross platform mobile app using cordova with backend server written in Asp.net I want to upload a file to the server from the application using REST api . I just wanted to check if ...
0
votes
0answers
3 views

How to change color of bar char - angular-dimple

Is there a way to assign a color to bar plot using andular-dimple. The documentation does not seem to have much information other that saying use $scope.palette HTML <div ng-controller="...
-1
votes
0answers
8 views

unexpected file in node js multer

I'm trying to upload my image path in DB through angular and nodejs. When i tried to insert the data and image path error occurred as unexpected field(without headers from angular post) and undefined ...
0
votes
1answer
30 views

Modal not working based on model

I have a modal popup template which is for create and edit detail. It popup between create and edit by using angular and model to populate value. However,the modal popup does not reflect the create ...
0
votes
0answers
11 views

Angular-timezone-selector Failed to instantiate module starter

angular-timezone-selector doesn't work correclty when deploying with ionic 1.7.14. I installed the plugin angular-timezone-selector from this source: https://github.com/mishguruorg/angular-timezone-...
0
votes
1answer
22 views

Fit bootstrap nav (ul)-width in ng-repeat automatically to container-width

for my webpage I'm using Bootstrap and Angular. In one of my page I have a bootsrap-nav (ul) in a ng-repeat element. My array with objects includes name and year of Persons. <ul class="nav nav-...
0
votes
1answer
10 views

Angular ui-select default selected value

I am using ui-select in Angular to have a select box in my page. I can search by typing and when I select value, the name will be displayed [Which is fine], and the ng-model has the selected values id[...
0
votes
1answer
19 views

Angular-Datatables - How do I make table sortable using default settings?

I am creating a plunker for another question but I cannot get angular-datatables to sort without configuration. I have code from a project that responds to sorting when users click on header columns ...
0
votes
2answers
21 views

How can search JSON for a value key and return the nested data?

The below block is my JSON. The -KTYLrHDHt234rFDNHrm type hashes are generated by the supplied API of the client. I think they're using Firebase. I am passing a query in the URL which contains the ...
1
vote
1answer
25 views

Angular controller doesn't work correctly

i'm trying to set up a simple angular project, but, in the moment when the angular controller should be initialized, don't work... The /home route is working (or i think so, beacause the template is ...
0
votes
0answers
26 views

Dynamic search with pagination in MVC

my problem is to implement dynamic search in my MVC project. So far I'have only implemented the pagination. I want the search to return all the results found in the database that meet the input and ...
0
votes
0answers
6 views

Angular JS: I want to understand how directives work internally. Don't want to learn syntax but the internal visualisations

I have studied Java from Head first Java and it was an amazing experience. Now, I want to, Understand how Angular JS directives work internally. How @, & and = binding look in object-village? ...