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
0answers
7 views
Email validation in angular js
i am learning angular from w3schoot. i stumple to understand a code like how it is working. code taken from http://www.w3schools.com/angular/angular_model.asp
<form ng-app="" name="myForm">
...
0
votes
0answers
6 views
typescript - difficulty “extending” IAngularStatic
I asked a question similar to this not long ago and got a great deal of help, but even with the answer there I'm struggling with this code.
I've written - in typescript - a small service to use with ...
0
votes
0answers
10 views
AngularJs resolve on any route
I've got this route file and right now I only resolve one route (/home). But how could I resolve the same service on any route?
(function () {
var employeeAppModule = ...
0
votes
1answer
14 views
How to evaluate expression runtime in angular
i am new in angular and trying to evaluate expression at runtime in angular but failed.this is my code
<!DOCTYPE html>
<html>
<script ...
0
votes
1answer
14 views
Handle a 404 when networks shows a 200
What is wrong with this code:
function mainCtrl($scope, $http) {
function loadData(){ $http.jsonp('http://www.pais.co.il/Lotto/Pages/last_Results.aspx?download=1')
.then(function ...
0
votes
2answers
15 views
Data not showing - Unexpected token function
Not sure what I have wrong but it's not showing the data in this calendar app I'm creating with angular with code academy, any ideas?
I get this error Unexpected token function in console.
day.html
...
0
votes
2answers
22 views
I lose my $scope value
I'm still new with angularJs I'm trying to pass a value of a variable from a page html to another page(actually a modal).Both of the pages share the same controller . Would help me to diagnose the pb ...
0
votes
0answers
9 views
Testing spinners using protractor on popup window
In my Angular app, I am writing the automation test suites of the application using Protractor, and I faced with problem how to test spinners, to wait for the spinner to disappear from the screen.
I ...
0
votes
1answer
8 views
Angularjs is not displaying update data in table row, ng-repeat not working properly?
I'm trying to get Angular to display JSON data that I've managed to pull from a database and console also printing the data as expected, but table ng-repeat not displaying the data. even outside of ...
0
votes
0answers
10 views
Installing Angular component router via JSPM results in mysterious 404 errors
I have a JSPM/Typescript/Angular 1.5.3 project. I want to use the new component router. In my project dir, I used the command
jspm install npm:@angular/router
which installed fine with no errors. I ...
0
votes
2answers
25 views
Angular Promise not working
I try to get some important things like: companyid,employeeid etc. with every request that a user makes. So this has to be received before everything else is done.
After that the user receives ...
0
votes
0answers
19 views
How to group elements by n in Angular's ng-repeat with Slick.js?
My elements are result of ng-repeat inside the slick div. Now, I wanted is to group them by two per div inside the carousel.
I tried this method using JQuery's slice and wrap but it only works with ...
0
votes
4answers
33 views
AngularJS ng-click is not firing
I have an ng-click in my app that is not firing when the element is clicked.
HTML:
<div class="col-md-7" ng-controller="githubController">
<div class="panel commitPanel">
<table ...
0
votes
0answers
11 views
Ionic controller is undefined
This is making me go crazy!
I am clicking on a row and all I want is to go to the details screen. It is a tabular application.
But I get the following error:
ionic.bundle.js:25642 Error: ...
0
votes
0answers
10 views
Is it possible to simultaneously use both the center and bounds attributes in Leaflet.js?
I have an web application, written using Angular.js and angular-leaflet-directive, that displays a selection of roads on a map. I have included some bookmarks for easy navigation to certain areas and ...
0
votes
0answers
15 views
creating async 'instance method' on ngResource object
My app has an Event concept that has latitude and longitude attributes. Client-side, I would like to use navigator.geolocation to calculate the current distance to each Event and show it in the view.
...
-2
votes
0answers
17 views
Angularjs No CORS response header for http get errors
I am having an issue with HTTP get calls in Angular. If the call is successful, everything is fine. If it is not for any reason, it does not have the CORS response header and the reponse error ...
0
votes
0answers
43 views
ng-include gets commented out
So in my angular view I have this:
<div id="submenu" ng-include="'/submenu.html'" ></div>
But when I visit the page, the HTML part is:
<!-- ngInclude : '/submenu.html' -->
I ...
0
votes
1answer
12 views
How can I access this in angular($window).bind()?
I am trying to perfom an action when a user scrolls, however I am unable to access the scope of the controller.
My code is:
(function() {
angular.module("myApp")
...
0
votes
1answer
12 views
Restangular should send data only once
When i do a standard patch or post request with Restangular, like (using coffeescript)
Restangular.all('advisors').post("advisor", $scope.advisor)
or
$scope.advisor.put()
my Rails app gets data ...
0
votes
0answers
8 views
Parse booking calendar with time
Ok i have this website(angularjs and parse for backend). There is a datepicker which selected shows available times for appointment. The problem is this.
Each day i sorted in 30 objects from 7 to 22h ...
1
vote
0answers
31 views
angularjs values are not bound properly
suppose I have a directive dir1
myApp.directive('dir1', function () {
return {
restrict: 'E',
templateUrl: '/Templates/TestTmpl.html',
scope: {
selectedName: ...
1
vote
0answers
7 views
How do I use AngularJS 1.5's Component Router in conjunction with user authentication?
I'm not quite ready to jump into Angular 2, but I wanted to tackle their new router and components.
For background, I am using a Python instance on Google App Engine that uses Endpoints in ...
1
vote
1answer
32 views
How to use angular.js variable inside the script tag?
I am displaying some elements on a view using angular.js and trying to connect these dom elements using jquery connections.The elements are getting displayed properly but I am not able to use them ...
0
votes
1answer
19 views
AngularJs deferred is empty
I check with every request if the user is authorized. This is my factory:
(function()
{
angular.module('employeeApp').factory('authenticationFactory', authenticationFactory);
function ...
-1
votes
0answers
10 views
Some problems with communication beetwien siblings directives - AngularJS
Hey Im writting this posts becouse my siblings componnent dont working together. I know that was few solution but the best Communicating with sibling directives
doesn't work for me.
Im talking about
...
0
votes
0answers
5 views
Kendo UI Grid Widget client-side filtering on numeric column
I have the below model schema for a field in my Kendo UI grid widget:
RS_LookBackDays: { type: "number", editable: true },
The columns configuration for the same is :
{ field: "RS_LookBackDays", ...
0
votes
0answers
15 views
Angularjs view refresh
I have a template which shows Exercise related data i.e. exercise name, intensity level, description etc. and a button to submit a rating to that particular exercise.
All this data is fetched from ...
0
votes
0answers
11 views
angular.js Cannot read property 'replace' of undefined googlebot
when I load my web from google's webcache and open the console there's an error:
angular.js:4167 Uncaught TypeError: Cannot read property 'replace' of undefined
It's this code:
function ...
0
votes
1answer
24 views
Angular templating not working
Im just starting out with AngularJS and Im having trouble with this piece of code.
This is the code from my js file called cribsController.js:
angular
.module('ngCribs')
...
0
votes
0answers
14 views
Angular+ Firebase dateChange
Actually I have a problem with my code. How can I get Date on input['date1'] and input['date2']. I might subtract this fields, rewrite in new variable and convert result in timestamp! Please Help me! ...
1
vote
1answer
22 views
How do I get data from a server for each element in an array in AngularJs
Let us consider I have an array:
var friendRequests=[
{
id:"Xyz",
requester:"person 1"
},
{
id:"Xyz2",
requester:"person 2"
}]
this array ...
0
votes
0answers
6 views
AngularJS Smart Table : 'ng is not defined' error on smart table with filters
I am trying to implement angularjs table with filters using smart table (http://lorenzofox3.github.io/smart-table-website/#top)
To be precise, I am implementing a table with filters for date and ...
0
votes
0answers
7 views
How to ignore some directive when $compile in angularjs?
Suppose I have a parent directive such that I want to ignore some of the child directive inside that parent directive by its directive name.
<parent ignore="['child2']">
...
0
votes
1answer
19 views
How to pass variables from a controller to an element outside its scope
My question is best explained with a layout of my template.
<body>
<my-directive option1="myVar"></my-directive>
<ui-view></ui-view>
</body>
As you can ...
1
vote
1answer
27 views
AngularJs check user with every request
I'm trying to identify a user with every request.
Right now this is my routes file:
(function () {
angular.module('employeeApp').config(routeModule).run(run);
routeModule.$inject = ...
0
votes
0answers
7 views
How to prevent directive inside ui-view sticking below elements outside ui-view?
I want to morph a button into a full-screen form using an angular directive, but the button stays below the navigation drawer when I animate it.
Is there a way to force it on top of every other ...
0
votes
0answers
13 views
How to obtain the user profile from a Users service within AngularFire, Ionic and Firebase
I have been experimenting with various ways to obtain the current user profile from a database, just like I used to use session_start() in PHP to get all the variables I need.
Here is my data ...
0
votes
0answers
6 views
Angular Material: not showing second validation message
I'm having a problem with an md-input-container when I have two validations applied to my input tag. I'm using ng-model-options="{ updateOn: 'blur' }", but the problem occurs even without it. For ...
0
votes
1answer
29 views
how to get json data from php file in angular JS
I have a php file which returns a json data. I am using angular http ajax.
But I am unable to get my properly formatted json which i want to use in my angular js. Please have a look at my code:
file ...
1
vote
1answer
13 views
Load routes only after user logged in
I'm developing an AngularJS app where security is a big concern. I'm wondering if I could implement the following architecture:
I want to have only the login route available at start, and then, after ...
0
votes
0answers
13 views
Angular architecture - multiple search boxes using different apis
Question about how to organise nested views and parent scope in regards to a saerch template, I use UI Router.
So I have several parent templates/pages - each has a search box that searches against ...
-1
votes
1answer
38 views
Angular JSON Response
Below is a json response from my API. I would like to utilize ng-repeat in my html in order to show this data back to an end-user. How do I go about in my controller de-serializing this json data.
...
0
votes
1answer
17 views
ng-view fail to render
//app.js
(function () {
var app = angular.module('app', ['ngRoute']);
app.config(function ($routeProvider) {
$routeProvider.when('/',
{
controller: ...
0
votes
1answer
15 views
Any websites using Fabricjs with Angularjs
I plan on creating an online picture collage maker using fabric.js with angular.js. However, being new to both technologies, I have spent the past couple of weeks getting myself acquainted with both ...
0
votes
2answers
17 views
AngularJS $http.post() promise returns no data
this is my first time working with angular and after a lot of time spent on online tutorials and guides I ended up getting stuck in sessions management. Everithing works fine except that when I do the ...
0
votes
2answers
12 views
Bootstrap Pills with Badges: Hide non-badge text on mobile
I have a multi-step form hooked up with angular ui router, with a little bootstrap nav on top:
<ul class="nav nav-pills nav-justified">
<li ui-sref-active="active"><a ...
-2
votes
0answers
11 views
FB Graph api show friendslist on GraphAPI explorer not in Angular app
I am creating and ionic angular app, in which i need to show the list of FB friends list. When i try the api explorer it shows me the json response with friends id and name. But when tried through ...
0
votes
2answers
11 views
scope of a function or a variable defined inside controller without $scope in angularjs
I need to know the difference between functions and variables defined without using $scope (e.g. $scope.myfunction = function(){}).
I need to know if I define a variable or a function inside a ...
0
votes
3answers
17 views
custom service for http not working
I have defined a custom service for making $http requests like this:
app.factory("ajaxCall",["$http",'$q',function($http,$q){
return {
getData : function(url){
var deferred = ...