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. The ...
0
votes
2answers
23 views
Why does this regular expression give these extra characters?
I'm making a timer that counts up. A base time is created and then the difference between now and the base time is calculated.
I then make that difference a date, turn it into a string and extract ...
0
votes
1answer
4 views
ng-highcharts not available
Error: [$injector:nomod] Module 'ng-highcharts' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the ...
0
votes
0answers
8 views
Routing of a directive within a directive
I have been having some issues regarding routing of directives within directives.
This is my app.config for ui-routing:
app.config(['$stateProvider', '$urlRouterProvider', '$locationProvider', ...
0
votes
0answers
5 views
How in angular2 can you get RouteParams for the new @Angular/router - doesnt seem to exist
How in angular2 can you get RouteParams for the new @Angular/router - doesnt seem to exist
This is my current code:
import {Component} from '@angular/core';
import {Router, ROUTER_DIRECTIVES, ...
1
vote
1answer
11 views
Can't run tests on angular sample project
I've cloned Angular Material-Start project. As documentation says:
run npm run tests to start all your Karma unit tests.
But this conmmand gives me an error:
npm ERR! Windows_NT 10.0.10586
...
-1
votes
2answers
15 views
ANGULARJS executing ng-click before href in <a>
can anyone tell me what to do if I want to first execute ng-click and after that move to another page? now it's just moving to another page and ignoring ng-click
code:
<div ...
0
votes
0answers
20 views
Function doesn't show noting on click in button
Hy people,
Can you help me on may code in http://play.ionic.io/app/44e0a65d2252
I have a button thar calls a function with 2 parameters when i click on it its
supposed to show a <p> tag with ...
0
votes
1answer
13 views
AngularJS - $scope.$watch with filtered scopes as output
This question is based in the answer provided here
I want to output the result from a lodash function applied to a scope ($scope.names) when another scope ($scope.switch) is set to true, and to ...
1
vote
0answers
16 views
Trouble including JSON in angular controller
I've got an angular controller containing a json object
app.controller("buildControl", function($scope){
$scope.buildData = [
{
'title':'Workspace',
'options': [{
'title': 'Studio'
...
0
votes
0answers
3 views
In angular2 routerLink on my view isnt working. How do I do an routerLink on my view and how do I import this?
In angular2 routerLink on my view isnt working. How do I do an routerLink on my view and how do I import this?
I'm using the new @angular/router.
This is my code:
import {Component, View} from ...
-3
votes
1answer
15 views
How to implement a search box in html that will filter the items displayed in a table below
On one of my pages, we have a table that will be populated and displayed upon load.
I need to implement a search box functionality. I will need to add a search box that upon entering text and ...
0
votes
0answers
14 views
Ng-href Not Working
I have this code
<a ng-href="{{vm.user.quicklinks2}}" ><image src="./images/potato.jpeg"></a>
Which when hovered over shows nothing
whereas this works
<a ...
1
vote
1answer
17 views
Angular2 RC.1 new router - Directive extend RouterOutlet
I can't seem to extend RouterOutlet when using the new router in RC.1
Example:
import { Directive } from '@angular/core';
import { Router, ROUTER_DIRECTIVES, RouterOutlet } from '@angular/router';
...
0
votes
0answers
21 views
Custom CSS For Similar Items With Angular
I am populating a calendar with events from database. Each event has a certain color code that needs to be used when it shows up on the calendar. How can I achieve this in AngularJS?
To be specific, ...
0
votes
1answer
11 views
AngularJS POST and GET 404 Error
Using AngularJS, I'm trying to post data from a form into an ng-repeat and save to a database. When I click submit, I get the 404 error for post and get. Can someone help show me where I went wrong?
...
0
votes
1answer
23 views
pass object to directive
I would like to do the following:
<my-directive my-object="{Code:'test'}"/>
Then convert the string to an object in the controller.
Currently using JSON.parse
I know I can do this:
...
0
votes
0answers
10 views
Angular 2 - Reload component when routerLink clicked again
I am working on Angular 2 project with following file structure.
HeaderComponent.ts
AppComponent.ts
Page1Component.ts
Page2Component.ts
I have following template in my HeaderComponent.ts
<nav ...
0
votes
0answers
9 views
Upload image to s3 using Angular
I want to upload images to s3 amazon, I'm using full&mean stack application, using Angular, HTML, node js... .
I have HTML page that print to my screen and hold form that the user need to input ...
0
votes
1answer
9 views
Ionic header item count
I want my nav-bar to be able to count items placed in basket.
Part of index.html:
<ion-nav-bar class="bar-dark" ng-controller="navBarCtrl">
<ion-nav-back-button ...
0
votes
2answers
19 views
Assign dynamic index in array of object in Angularjs [duplicate]
If I have array of object in such a way.
data[0].name= 'Prashant Shukla';
$scope.getColumn[i].Field = 'name';
Using above I want to assign Prashant in $scope.getColumn[i].value in dynamic way. I ...
0
votes
2answers
27 views
ng-hide hiding all icons
I have a table and am using ng-repeat to fill in the rows. Within one table cell i have a few font awesome icons. One in particular is a delete icon. I want to show or hide that icon based on its ...
1
vote
0answers
34 views
Angular 2's 5 times DOM performance booster when working with Side by Side
I have an Angular 1.5 app.I have decided to upgrade it to Angular 2.Due to some dependencies with the 3rd party libraries where I cannot migrate it to angular 2 completely. So that I have decided to ...
0
votes
0answers
12 views
Tainted canvases may not be exported. How to edit images uploaded via links then? [duplicate]
I have a script editing images which works as canvas thorugh angularjs. Images are uploaded by insering a link into a form or from computer. Those images which are uploaded from computer are further ...
0
votes
1answer
20 views
Handling Input validation in AngularJs?
I am very new to angularjs and I just cant figure out how I would go about validating my inputs.
I have an input which should never be empty. The model will always have a value. Whenever a user ...
2
votes
0answers
10 views
Code snippet does not show the UI-Grid neither error
var app = angular.module('app', ['ui.grid', 'ui.grid.cellNav', 'ui.grid.edit', 'ui.grid.resizeColumns', 'ui.grid.pinning']);
app.controller('MainCtrl', ['$scope', '$http', '$timeout', ...
1
vote
0answers
11 views
Is single rest 'put' endpoint enough to update a document with nested arrays?
[I am copying the exact question from last year which still has not been answered, and extend it a bit]
I'm developing a REST api using node.js + mongoose (MEAN.io). I have a model which has few ...
0
votes
1answer
15 views
How to make two-way data binding work for unordered list
I have following code to display employees list from mongolab, inside an unordered list. Using ng-repeat it is listing employees correctly. Now I introduced a button to add new employees. It is ...
0
votes
0answers
14 views
Typeahead AngularJS | Autocomplete when click
I'm using the getbootstrap typeahead to populate an input value. I've setup everything so that the user has to pick something from this list:
<input type="text" class="form-control" id="birdname" ...
0
votes
0answers
19 views
How to log time taken by rest calls in angularJS
I am using ngResource to call our backend server APIs in my AngularJs app. I was looking for ways to log outgoing requests at the time of initiation and when the response comes, along with the time ...
0
votes
1answer
21 views
how to query user information by ID using Angular SDK
I'm quite unfamiliar with Angular SDK and lb-service, and confuse about how to query other's user information by ID inside controller
I want create a friend list feature, and each user only store ...
1
vote
1answer
15 views
Update of array inside watch function doesnt reflect change in ng-repeat directive
I am not able to understand strange behaviour of ng-repeat directive.Let me explain the problem.enter image description here
In the first image, search box will be empty for the first time as soon as ...
0
votes
0answers
10 views
Firebase V3 and Social Login with Ionic
I am just trying to create a simple social login (e.g.: google, Facebook,...) inside a Ionic App and using Firebase V3 as backend. Unfortunately all the example and tutorial that I found on the ...
-3
votes
0answers
11 views
angularjs setting ng-required true too late and the form is valid
$scope.isSubmitted= false;
$scope.submit=function(form){
// save the application , and set off the business workflow
// validations should fire
$scope.isSubmitted= true;
...
0
votes
1answer
11 views
Angular Material Design text size change
I'm using https://material.angularjs.org/latest/ to make my site responsive. For different screen sizes, I want my font size to change for example,
for small screen, I want font size to be 5px and ...
0
votes
1answer
20 views
In angularjs, Enable the button after the user uploads the image, otherwise the button should be disabled
I want to disable the button when user has not uploaded anything. After user uploads the image, I want to enable the button.
I am trying to use ng-disabled, but I am not sure how to set the ...
2
votes
0answers
7 views
Echart bar won't showing using json
I'm new and need your help with this. I want to build Basic Bar inverted axes using json data. It's should be look like this :
Bar Inverted Axes
, but somehow the chart won't display. I'm using ...
0
votes
0answers
12 views
I have this JSON Data, How do I represent it in Charts using ChartJS?
I have the below code, wherein I am requesting data from the Server (JSON) through GET Method. How do I represent this in charts using ChartJS?
The data is being requested from ...
0
votes
4answers
24 views
AngularJs change button text as well as color
Hi I am trying to change color as well as text of a button i.e. switch between two texts & colors. Suspend/unsuspend text and red/green color.
What I want to do is for the moment (because later, ...
0
votes
0answers
5 views
Correct usage of on-touch, on-tap vs ng-click
In angular itself, ng-click itself is used in determining a click event. However, when developing a hybrid app using ionic framework, there is at least 3 directive that can be used to achieve similar ...
0
votes
1answer
33 views
How do I ng-repeat on recursive nested children in bootstrap table structure?
Here is the example of what I'm trying to achieve.
http://www.lidorsystems.com/support/articles/angularjs/treegrid/tree-grid-cascading-checkboxes.aspx
Sample JSON:
$scope.orgs = [
{
...
4
votes
0answers
18 views
How to use tags-input and auto-complete in custom directive?
I have created custom-directive, I want to use it with 'tags-input'. But When I select any value from auto-complete result, It does not select. I don't know why it not working, Please find DemoPlunker ...
-1
votes
0answers
20 views
Argument 'EmailController' is not a function, got undefined in AngularJS
I have my angularJS code for django project. I am working with following files.
mailbox.html
app.js
controllers.js
services.js
My mailbox.html looks like :
{% extends "base.html" %}
{% load ...
0
votes
2answers
29 views
how to use observables in html (angular)
I have a class that have an observable property
isPossible: Observable<boolean>;
and I want to use it from another class html file...so I understood I need to use something called pipe ...
0
votes
0answers
16 views
Can not apply class animation on ng-repeat-end
My project has a table that is using ng-repeat-start and ng-repeat-end to show 2 rows on each repeat, I also have a css class where ng-repeat-start is that has a fade out animation, when I'm filtering ...
1
vote
1answer
16 views
Angular2 rc1 - Is order of @Routes declaration important (optional parameter)?
Trying out the new Angular 2.0.0-rc.1 without the depracated stuff.
I want a component to work with or without path parameter. As I was unable to figure out the syntax for optional paramter (eg. ...
0
votes
2answers
14 views
Karma + RequireJS + AngularJS, shimmed scripts not loading in spec
While using Karma + Jasmine + RequireJS + AngularJS, I'm unable to load any of my shimmed scripts, for example angular-mocks, into the test specs. The file seem to be served all right, just doesn't ...
1
vote
2answers
28 views
angularjs ng-show not working perfectly
I want to show and hide a button with ng-show directive.
Here is my HTML file:
<button class="btn btn-info" ng-show="editBtn">Save Edit
<span class="glyphicon ...
0
votes
2answers
25 views
How to output data with a template page without using <a> tag?
I'm working on an angularjs app, and I want to display data with a template page if possible. For example:
<div data-ng-view=""></div>
<input type="text" name="name" ...
0
votes
2answers
17 views
Binding data to Dom is failing
I am adding the response.data to $scope.studentData but still its not showing in DOM , before that I was getting angular.js:13550 Error: [ngRepeat:dupes], so I added track by $index which removed the ...
0
votes
1answer
25 views
How to display one controller value into other controller
i have two different controller "first" and "second" and two different application variable "fname" and "lname" both application variable exist in different controller. i bind the value of application ...