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
13 views
Make button clickable when using radio button
so I have the following view:
<ion-view view-title="Training Detail">
<ion-content class="padding">
<ul class="list">
<ion-item class="item ...
0
votes
0answers
7 views
How to remove a particurl history link from the browser
Am clearing my url params for a particular cause. What I need is right after I cleared the url I need to remove it from the browser history. I dont want to to keep an url in browser history with out ...
0
votes
1answer
13 views
Change attribute of custom directive
I have custom directive to load pages inside a div
.directive('page', function () {
return {
templateUrl: function (elem, attr) {
return 'pages/page-' + attr.num + '.html';
...
0
votes
0answers
8 views
how to show multiple row templates in angular uiGrid with different rowHeights?
is there any way to have rowHeight as the template height in ui.grid.
i am showing multiple templates using ng-if inside a template based on some conditions but each structure is having its own ...
1
vote
1answer
22 views
Upgrade Angularjs 1.2.23 to 1.4.5 error
I'm using Angularjs version 1.2.23 in my project, now want to upgrade it to 1.4.5 , but an errors occur During upgrade as mentioned below. my questions are:
Can i do that?
Or:
Firstly change it ...
0
votes
0answers
17 views
nested state in angular js gives TypeError
I have two states, one abstract parent and the other child. Nothing fancy,
var app = angular.module('starter', ['ionic'])
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
...
0
votes
3answers
21 views
what is the way to iterate the $resource.get other than doing $promise.then
Once I receive the document say $scope.var = $resource.get(/*one record*/).. I would need to read the received nested object structure (which is now in $scope.var) in order to display each and every ...
0
votes
0answers
4 views
How to use angularjs in aspx page of Sharepoint 2013 application page
I am trying to use angularjs in the aspx page of the application page of Sharepoint 2013. Is it possible? If not, how I can use angularjs in SharePoint pages ?
-2
votes
2answers
16 views
AngularJS Watch Performance Issue
I need to code the following requirement. If it occurs that any form field changes, I need to hide a div with some content. My solution is using $watch with objectEquality == true for watching a ...
0
votes
0answers
7 views
How to display search suggestions from Elasticsearch Phrase Suggester with AngularJS
Trying to display the first 10 options from the options array from the Suggestion object from ES Phrase Suggester using AngularJS, but stumped....
This outputs the first element in the options array:
...
0
votes
0answers
15 views
pagination of my dataTable in angularJS
I have problem in pagination of my dataTable(angularJS),this is my code:
app.js:
.controller("StudentCtrl", ["$scope", "$http", "filterFilter", "$rootScope", "logger", "$filter", "$log", ...
1
vote
1answer
10 views
mixing isolated scope and controllerAs syntax
I have a directive that is need of a variable that resides on it's parent controller
<hack-chart-controls counttime="vm.countInMinutes"></hack-chart-controls>
directive:
function ...
0
votes
0answers
11 views
Html head tags appearing in ui-views when using Angular-ui-router
So i'm using angular-ui-router instead of the default angular router
And for some reason my ui-view is being duplicated and outputting the tag contents in the body of my page
(function(window){
var ...
0
votes
0answers
13 views
scope.$watch not applying after successfully changing variable
I have a directive that is getting a value passed into it from it's parent controller.
<hack-chart-controls counttime="vm.countInMinutes"></hack-chart-controls>
In the directive there ...
1
vote
0answers
13 views
Laravel & Angular: how to return entire public directory for single page app dependencies
I have found plenty of tutorials explaining how to use Laravel and Angular together for a single page app. Each seems to have it's own method of adjusting the public directory, or forwarding a file ...
0
votes
2answers
22 views
Modifying a collection's object's attribute removes all other attributes
Adding to the array in an object in a collection object removes all other arrays in that object.
Consider a member of the events collection:
{
"_id" : "EfEq7niEyLLatb7fb",
...
0
votes
1answer
26 views
Angular UI-Router not showing html content, but directing to the right path. No errors, but ui-view not working
I am using UI-Router for an Angular app. I can't seem to find what I am doing wrong. I am also not getting any errors which is making it really difficult for me to debug. Followed the docs as well and ...
0
votes
1answer
20 views
ng-change using previous value
I have the following input
<input style="margin-left:24px;" id="numOfRows" class="setupInput" size="10"
ng-model="rowVal" ng-init="rowVal = gameCtrl.getNumOfRows()" ...
0
votes
1answer
16 views
MVC form does not submit Angular form
My MVC form does not submit back to the controller if I remove the default Html.BeginForm and replace with any other form. What am I missing?
@using (Html.BeginForm()) {
...
0
votes
0answers
17 views
how to modified tool tip when hover on chart?
I am using fusion charts in my demo .i want to show tooltip same as given in image . It show x and y value in square box with same background (some circle and vertical line also display).I make ...
0
votes
0answers
8 views
AngularJS loaded twice with Rails asset pipeline
I have set up rails to use bower according to the following guide: http://joelencioni.com/blog/2014/01/03/integrating-bower-with-rails/
I have installed AngularJS and included it in my application.js ...
0
votes
1answer
13 views
AngularJS Pass value from directive link function to controller
Newbie to Angular. Very straightforward question. I have the following code.
I just want to show the file count underneath. I bind the fileCount variable to scope, but it doesn't work.
var app = ...
0
votes
0answers
8 views
ng-file-upload interation into a existing angular project
I have a angular-js project that works. I need to add a tab for uploading files to a Tomcat server.
I took the demo in the source code from git, and trying to integrate it into me project.
I'm not ...
0
votes
0answers
12 views
how to add target lines in chart as trendlines?
could you please tell me how to add trendlines in highcharts or target lines hight chart .I am able to achieve to draw in fusion chart .
.
http://jsfiddle.net/Tu57h/139/
please see above fiddle link ...
0
votes
1answer
15 views
Trying to access a injected dependency outside controller method
Is there possible to access a injected dependency on controller outside on it?
function clienteCreateController(ClientesService, recuperarEndereco) {
var vm = this;
vm.pesquisarCep = ...
0
votes
0answers
4 views
Testing AngularJS Directive with Karma & Dynamic Template URL
I'm attempting to build a unit test on my AngularJS directive, but I've run into a few snags rendering the template. Specifically, my directive's templateUrl has a referenced to window.STATIC_URL, ...
-4
votes
0answers
20 views
Angular Frontend vs Admin, one app
I created an admin, now it's time the frontend to display the information in the admin.
Needed a helping hand to develop the frontend of the best so that the two work together, such as Wordpress.
0
votes
1answer
18 views
GoogleMapsAPI's JSON “Uncaught SyntaxError: Unexpected token :”
I'm studying AngularJS.
I'm trying to get GoogleMapsAPI in JSON response format.
but Chrome reports "Uncaught SyntaxError: Unexpected token : ".
So far I am just trying to connect and see the objects ...
0
votes
2answers
25 views
How to use data from API in factory AngularJS
I have the below code which uses the data in the staff array to calculate the staff members pay.
'use strict';
var app = angular.module('app', []);
app.factory('staffFactory', function ($http) ...
0
votes
0answers
8 views
kendo Grid column with angular bootstrap popover using a template for dynamic list
I am trying to show the list of item names in a popover when hovering on a column of count with Kendo Grid.
The item names are got back from an API response.
I am using popover-template to reference ...
0
votes
0answers
19 views
Issues with ng-init and using jquery to simulate a click on a hidden button
I have an application developed with MEAN stack and I have an interface problem:
In the below HTML code the div with the id=questionsExpert is being filled with some input boxes when I click the ...
0
votes
0answers
23 views
Can't Get Angular Controller to work in MVC Layout
I have an MVC app that uses the _Layout page to render a header and a sidebar in every page. I am trying to use Angular's Accordion for the menus. However, as soon as I try to place a controller in ...
0
votes
0answers
8 views
How to Apply reveal modal for a Zurb table
I have a controller which displays remote json data (http://jsonplaceholder.typicode.com/users) in form of a zurb table, now I want to select a row in a table which should show more details like ...
0
votes
0answers
14 views
Angular bootstrap tab pane fade not working properly
I have the following angular app where i am trying to hide and show tabs using tab-pane. I have the following code:
<ul class="nav nav-tabs" role="tablist">
<li ng-repeat="item in ...
-2
votes
1answer
14 views
How to bind an array list values into check boxes in VB.NET
I have an array list of around 100 names in my code behind file and i'm looking to display these names as check boxes to select by the end user. How can i display them on my ASPX.Page.
Please give me ...
1
vote
0answers
21 views
Accessing Two Models from Inside One ng-repeat
Suppose I have the need to list out some items in a view and also populate a dropdown list with data from a different model. The potential code is as follows. Am I allowed to do this? If not, how do I ...
3
votes
1answer
19 views
isolate scope angular binding not updated from geolocation
I'm using isoated scope in a directive. Everything seems to work fine. I set a = scope on two properties and bind to them in my template. Then, in my controller I call my service, get the data and ...
0
votes
0answers
14 views
How to set document.body.scrollHeight for unit testing in jasmine
I want to test my function which calculates table height.
self.tableHeight = function() {
var tableContentOffsetTop = ...
0
votes
1answer
13 views
Load angular textAngular on demand
I am trying to set up textAngular on demand i.e. when and if i need it. The textAngular app works if i have the follow html in the file..
<body>
<div ng-app="textAngularTest" ...
0
votes
1answer
16 views
$scope value not able to read in controller
I am not sure what is wrong with this but somehow not able to read correct value of $scope.
Here is my code at controller -->
$scope.verifyMobile = SearchFactory.verify.query({uuid: uuid});
The ...
0
votes
1answer
9 views
CORS preflight channel did not succeed - client - server
I'm building an application and was using the below test code to test out angular http.Post()
But I am receiving a strange error that my preflight is not succeeding.
The client code is below
...
1
vote
2answers
33 views
AngularJS: Neat way to print array as string
I have a following array:
"cast": [
{
"name": "James Stewart"
},
{
"name": "Kim Novak"
},
{
"name": "Barbara Bel Geddes"
},
{
...
0
votes
0answers
13 views
New to web development and do not know how to run angularjs on localhost?
Folks - I am novice in web development and to AngularJS as well. Just trying to run a simple basic app which has 'home' and 'about us'. Please help me understand how to run this simple app on ...
0
votes
1answer
4 views
bower install <name>=<package>#<version> is installing wrong package
I'm trying to install angular-route#1.3.18 as bower_components/angular-route1.3 in my project folder. But when I try it, it keeps trying to install angular and not angular-route.
>bower install ...
0
votes
0answers
7 views
Including Angular-UI-Validate in my project
The project uses Angular 1.3 (from a CDN, links removed below) and I'm trying to install Angular-UI-Validate. I have included both in script tags, and in the inspector, I can see that they're both ...
-4
votes
0answers
18 views
JavaScript doesnot work when encoding using these links?
I tried to encode/encrypt my js files(jQuery,Angular) using these tools. These tools encode js files fair enough, but when I include these files in my html. The pages doesn't understand these js files ...
-1
votes
0answers
6 views
Create a follow feature using AngularJS and Rails
For my site I want user to be able to follow other users so they're notified when someone posts or likes something on the site. I'm getting into AngularJS and I would like to use this for ...
0
votes
0answers
10 views
Should I migrate from ngRoute to ui-router?
I have a pretty extensive ngRoute router right now with around 15 different URL paths. The website I am working on displays pages with heavy data, lots of charts, etc. for a logged in user. My issue ...
-5
votes
1answer
37 views
how to find object 0 in array
I have an array with a list of objects.
I would like to check when I am at 0 object so I can skip it and just process objects 1 through 7. My code does it, but I wanted to find out if there is a ...
0
votes
1answer
9 views
Populating Double Curly Braces Within $sce.trustAsHtml
I have to render a string (item.tabs.review.content), that is parsed into HTML using $sce.trustAsHtml.
The main issue I am having is that within the string are references to an array in the item ...