Tagged Questions
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 apps are also frequently known as Single-Page Applications.
0
votes
0answers
9 views
How to create relative xpath for check-box element?
I need to create xpath for the check box.It is a angular js element.I tried to produce xpath with firebug.But it is giving html xpath and its not useful.I would like to know how to create relative ...
0
votes
1answer
14 views
ng-bind not updating after closing modal form
I have a view with one list item. After user clicked on this item, the modal form show. When user change value and close modal, the item-not not updating.
View:
<ion-view ...
0
votes
2answers
21 views
How to Trim variable in View Using AngularJS?
My variable {{bb}} the value of {{bb}} is "9.00 to 10.00"
I Want to display only 9
0
votes
0answers
5 views
Login using Oauthconnector via services Drupal (for Cordova App)
I am using drupal oauthconnector or log in using social network using oauth authentication method. All are working in drupal website. But the problem is, I am using services for mobile app. I have ...
0
votes
0answers
6 views
Angular modify and resubmit http.get request using buttons on page
I'm pulling data from elastic search using Angular http.get and displaying the output using angular.
The initial concept is working fine, however what I would like to do is add a button to the page ...
0
votes
0answers
8 views
angularjs .openModel() reurns error not a function
i have had a project wich combine angular JS and Materialize css and had this project open models with id #modal-some-form using angular js $('#model-some-form').openModel();
Now i have another ...
1
vote
0answers
4 views
Angular Material -md-grid-list content
I am trying to use md-grid-tile of angular material.The Issue I am facing is content of md-grid-tile is aligned center.How to make to work it from Start
<md-content layout-padding>
...
0
votes
0answers
10 views
AngularJS: module conception
Some time ago I developed a kind of complex feature that includes 1 controller, 3 directives and 1 html template, and interacts with 3 different factories.
Now, I have to have the same feature in a ...
0
votes
0answers
8 views
Pass multiple value to a controller through ng-init
I made a controller that retrieve the the content of a HTTP get and a directive that will display the result, I use them like that :
<div ng-controller="averageAlertController"
...
0
votes
0answers
7 views
How to define a sitemap for an AngularJS app
Now that google can crawl AngularJS websites successfully what is the correct way to define url link locations within your sitemap i.e. using the url hash fragment or template url?
For example, ...
1
vote
1answer
10 views
Angularjs undefined function Error: ng:areq Bad Argument
I am taking baby steps learning angularjs from video tutorial and as i reached the controllers section i had this error:
Argument 'SimpleController' is not a function, got undefined
although i ...
0
votes
0answers
8 views
$routeProvider Not executing
For some reason the path is not working im not sure but it just shows me a yellow screen, here is the Cloud9 File. And
script.js:
angular.module('ChattApp', ["ngRoute", "firebase"])
...
1
vote
1answer
16 views
Put condition on data-ng-attr-style
My html is this:
<div data-ng-attr-style="background:url({{ backgroundImage}}) !important; background-size:cover;" ></div>
Now I can put the condition inside the double curly braces {{ ...
0
votes
0answers
5 views
Cordova-file-transfer plugin corrupts my pdf
I am creating mobile app with ionic and I am experiencing strange behavior of $cordovaFileTransfer.
The thing is, that I use this plugin to send a picture to server and then I save success.response ...
0
votes
0answers
6 views
window.imagePicker.getPictures not working on Mobile wherase working on emulator
I a developing an App where I want to upload the images from Gallery
here is my Js file
angular.module('appControllers', [])
.controller('HomeCtrl', ['$scope', '$rootScope', '$cordovaCamera', ...
-2
votes
1answer
32 views
format a string like a date
I'm receiving a "date" represented by a string in the form yyyymmdd from a database table over which I have no control. (I cannot modify the type/format of the date field)
I would like to insert the ...
-1
votes
0answers
8 views
Robust library for PDF Rendering
Have been using raw PDF.JS to render PDF on client side(AngularJS) but have found some glitches like even though page is rendered according PDF.JS, on UI page renders slowly line-by-line which break ...
0
votes
0answers
9 views
Picklist (multi-select) component does not update data. BootStrap component + AngularJS
I have a project based on JSP + AngularJS.
In my jsp, I have a picklist component provided by a bootstrap template. I am receiving data from my DB, the name os the companies I need to work with, but ...
0
votes
1answer
10 views
Using Component styles results in conflicting html/body styles
I have two components in my Angular 2 app and they each define different styles in SASS files. Unfortunately it appears that both components' styles are being loaded for both components, resulting in ...
0
votes
1answer
16 views
Angular Callback with arguments
//Load Property Types
$scope.getAddressByPostcode = function() {
PostCodeLookup.getAddress(function(postCodeAddress,'NN4 5DT') {
$scope.postCodeAddress = postCodeAddress;
...
0
votes
1answer
10 views
How can i define routes for logged user?
I can save successfuly the data in the local storage and access to my array like this :
var user = JSON.parse(window.localStorage['user'] || '{}');
console.log(user);
user.loken ...
0
votes
3answers
29 views
Format date in angularjs
How do I format date like "Tue 01/19/2016" to show as `"Tuesday, January 19"
I tried
$scope.date = "Tue 01/19/2016";
<p>{{date | date:'EEEE/MMMM/d'}}</p>
output
"Tue 01/19/2016"
Is ...
0
votes
0answers
17 views
Wait for directive
I have a directive for my form with a template that contain two text fields. The first textfield can be filled in with a number (id). As soon as the focus is lost in this field, a GET is done and the ...
-3
votes
0answers
28 views
AngularJs ngRoute
For some reason the ngRoute dosent work properly:
Here is my script.js(there is a Html/login.js):
var app = angular.module('ChattApp', ["ngRoute", "firebase"])
app.config(function ($routeProvider) ...
0
votes
1answer
16 views
Ionic if else statement to display and show data
I am using the ionic framework to make an app. I want to do an if/else statement like I would in php.
Basically if the user does not select an account from the code below then the label after it ...
1
vote
3answers
16 views
Increment input ID Angularjs
I'm looking to increment my input ID while using ng-repeat and I tried this but it doesn't work :
<div ng-repeat="d in index">
<input type="checkbox" name="name" value="" id="{{d}}" ...
0
votes
2answers
30 views
how to pass values from service to controller in Angularjs
I am making a widget using angular dashboard framework but I am stuck at how to pass data values generated in services to controller? I would like to pass values of var new_x to controller- in ...
0
votes
0answers
7 views
How to emit returned mongo query with socket.io
So what i'm trying to do is create a blog post and have that blog post update in realtime for all people viewing the blog. Now I have the basic app setup which allows me to list all posts, create a ...
1
vote
2answers
17 views
Using foursquare api with angular 2
I'm having issues figuring out how to use foursquare api (search capability) within my angular 2 application.
My project structure looks like this
app
components
app.ts
search.ts
...
0
votes
1answer
14 views
TypeError: “Cannot read property 'activeMenuTab' of undefined” in AngularJS routing
In my application, I am getting this same error (TypeError: "Cannot read property 'activeMenuTab' of undefined") 3 times on browser console, although application is working very well.
Error refers to ...
0
votes
2answers
28 views
AngularJS the scope value does not display in the views
I am a newbie in angularjs; the scope value are not displaying in the views.
I have two apps: myApp and ram - each one having their controllers.
I'm trying to display scope values.
Only myApp shows ...
-1
votes
1answer
13 views
Can anyone point me to a working code or complete concept tut for ViewMetadata in Angular2
I am trying to comprehend and link the concepts of viewmetadata and the basic usage for encapsulation : ViewEncapsulation , ViewEncapsulation.Emulated , and ViewEncapsulation.None ...
0
votes
2answers
18 views
Injecting Angular modules: Unknown provider
I followed a tutorial on how to organize and Angular project. I have a ng directory that contains all my controllers, services and my routes.js. This is then bundled all together into an app.js by my ...
0
votes
3answers
37 views
Get value input with angularJS
I have to get the value of an input text with AngularJS but without using Controller.
How i can get this value?
I saw this posts but uses .controller
link post
-1
votes
0answers
14 views
dynamically displaying json data as a table when the structure/field names of the json data is not provided
In my application I will receive data in json format and I would like to display the data in tabular form in web browser.Please note that I will not be aware of the structure/field names of the data I ...
0
votes
0answers
6 views
Apache RewriteRule
I am trying to redirect non domain.com domain to www.domain.com for that i have modified .htaccess as
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ ...
3
votes
5answers
39 views
Dynamically load templates (partials) in Angular.js
I'm trying to load a template into an Angular app depending on a parameter. It would be inside a ng-foreach:
<body ng-app="MyApp" ng-controller="ExampleController as example">
<div ...
0
votes
1answer
16 views
employee information using angularjs and php
I'm the beginner of angularjs and php.Here I try to do a simple task as employee information.But while i'm excute my code it gave the error like this Trying to get property of non-object in line 6 and ...
0
votes
1answer
11 views
Strange behaviour when adding directive dynamically in ngrepeat
I am trying to add a directive dynamically inside ngrepeat. Please refer to the following fiddle link: Fiddle Link
Code:
// Code goes here
var app = angular.module('myApp',[]);
// myDir Directive
...
1
vote
2answers
38 views
How to handle errors in AngularJS
I am new to angular.js just started learning, i want to Display the array defined in the Controller, But When I am trying to Display Its Showing empty page. I know if i change the ng-repeat=post in ...
0
votes
1answer
27 views
required validation does not work with input type file
I am trying to apply the validation on file input type with the use of angular form and form properties like $valid, $invalid, $pristine, $dirty, $touched.
Note: All other validation except file ...
0
votes
2answers
31 views
How to read the url query parameters in angularjs?
I'm creating a simple angularjs app and want to read the query parameters of the url mypath.com/test.html?param1=test.
Question: how can I read and modify the parameters list?
$location.search() ...
1
vote
0answers
11 views
Advantages and Disadvantages of using Typescript or ES5 JS based development for Angular2
I am sure there are advantages and disadvantages of using both Typescript and ES5 JS (+modular str) based development for AngularJS version 2. Can anyone point this out for most aspects like ease of ...
0
votes
0answers
12 views
angular-datatables - Cannot read property 'Api' of undefined
I am currently using angular-datatables v0.5.2 and i encountered the following problems:
Cannot read property 'Api' of undefined for angular-datatables
Hope someone that has encountered this problem ...
0
votes
0answers
12 views
MEF like framework for angular js
We have built a web application using asp.net MVC 5 with AngularJS. This means most (all except one) of the views are html files and controllers are .js files. All calls to the backend are ajax calls ...
-1
votes
1answer
19 views
angular Js: Array.lenght property gives undefined
I am making a REST call which gives me an array of object as [object, object, object]
but when I try to print the lenght its giving me undefined.
$http.get('/admin/getDoctorsFromFacility/' + ...
0
votes
3answers
17 views
Folder Upload with Angular Js
I understand that file upload is possible with Angular Js. But I researched and found no provisions for an entire folder to be uploaded.
I am working on ASP.NET 5.
Is folder uploading possible with ...
0
votes
1answer
7 views
Some prbm in angularjs lib default value is not working in select if(value and name) same?
Here I create sample for select in angular... Which is working fine.. I tried to set default value for select if I set this $scope.selectedValue = "SureshRaina";
working fine... but if I set this ...
0
votes
0answers
20 views
AngularJS nested ng-repeat indexing
I have this array of objects (left side) and I want to index it like this (right side) using ng-repeat.
i j | x
[ |
0 | 0 x = i
1 | 1
2 ...