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 ...
1
vote
0answers
4 views
Angular js not working resolve
Have State Route:
.state('stateProfile', {
url: '/Profile',
views: {
"ContentContainer": {
templateUrl: '/Navigation/Profile',
controller: ...
0
votes
0answers
4 views
closing ngDialog in controller
i have two function , one for opening dialog and one for posting data to server and then close the dialog , the problem is i cant close dialog , here us the code
vm.openCreateDialog = function () ...
-2
votes
0answers
9 views
Explaining AngularJS from the basic language constructs in javascript
I'm a java/.net programmer trying to learn Angular.js. I am having some trouble bootstrapping my travel on the learning curve. I'm stuck on wrapping my mind around the basic structure of a typical ...
0
votes
0answers
9 views
json Api - IONIC (AngularJS)
Hello guy's i need you urgent help.
I'm exctracting a json api url in the framework ionic with AngularJs like the code below:
.factory('BuyApi', function($http) {
var obj = {};
obj.buy = ...
0
votes
0answers
10 views
Ionic app is ver slow with ng-repeat
I'm using ng-repeat for a JSON file with about 200 entries.
<ion-item ng-repeat="item in posts | filter:searchBox" ng-show="searchBox.storeName.length > 0" ng-model-options="{debounce: ...
0
votes
1answer
10 views
Conflict between wow slider and angular.js
I have this code:
<div class="clearfix" id="image-block" ng-init="GetAllSingleProduct">
<div id="wowslider-container1" >
<div class="ws_images" ng-repeat="image in ...
-1
votes
0answers
9 views
Flipkart Api through angular js
Hi there i am trying to access products of flipkart.com through angular js api. THe server is responding with an error -1. can any one help me to fix this .
my flipkart app id is 'flashsale' and api ...
1
vote
2answers
20 views
Array.from on the Internet Explorer
I have a problem with my angular app on the Internet Explorer. It runs everywhere without a problem (Chrome, Mozilla, Edge), but on on the IE.
I have analyzed with the Developer Explorer where the ...
0
votes
1answer
9 views
Stuck On Multiple Views with similar names in Angular
Good Day Everyone!
I am working on a portfolio SPA, and I am currently stuck. Is there a way to only use one view and have that view and link change dynamically?
That is instead of having this html ...
0
votes
0answers
3 views
disable escaping characters: jade-loader webpack
In views all goes fine, however when I'm trying to load jade template into Angular Material dialog:
$mdDialog.show({
template: require('./file.jade'),
controller: 'Ctrl as vm',
parent: ...
0
votes
2answers
14 views
Resolve variable for ng-included view
This is my app.js:
app.config(['$routeProvider',
function ($routeProvider) {
$routeProvider.when('/', {
templateUrl: 'partials/home.html',
controller: ...
0
votes
2answers
13 views
AngularJS routeProvider resource not find
I know that routeProvider topic has been raised over a thousand of times, but I still cannot figure out why my code isn't working. The problem is, I think, with routeProvider which shows Resource not ...
0
votes
0answers
5 views
How can you use dynamic url for the Facebook Graph API?
https://developers.facebook.com/docs/plugins/share-button
For instance, is there any way for each user to share his/her profile on the facebook timeline ?
When you are filling out the URL to share, ...
0
votes
1answer
14 views
Port an AngularJS web app to Ionic
I have an AngularJS webapp. I want to port it to Ionic to create hybrid app. I have figured out that I need to put all my code in www folder after creating an Ionic app and need to include cordova.js ...
0
votes
0answers
8 views
include google maps inside angular2 project
I'm trying to add place autocomplete to my angular2 project.
I've included <script ...
0
votes
2answers
20 views
AngularJS: line number
I will have some search result as below:
using table tag and AngularJS as below:
<tbody>
<tr ng-repeat="customer in fndCtrl.result">
<td>
...
0
votes
1answer
7 views
Angular 2 EventEmitter performance
I'm working on web-app based on Angular 2. In Angular 1 we had two-way data-bindings, so services could be easily connected with page data using $scope (if we change something in service, data will be ...
1
vote
1answer
21 views
Retrieve values from dropdown in angularjs
I am not able to correctly apply the decimal rounding, which is selected by the user before calculating a total price, in this angular js app.
HTML
<html>
<script ...
0
votes
1answer
14 views
Ionic alert - check if result is undefined
I load a JSON file from a server with angular and Ionic.
This is my code:
$scope.showAlert = function(mo,di,mi,don,fr,sa,so) {
$ionicPopup.alert({
title: 'Success',
...
0
votes
0answers
14 views
Add parameter to socialite callback url
I want to integrate facebook with my app. I'm using laravel/socialite package to get access to facebook page. At all it works but I'm doing it with logged in user and I want to add info from his ...
0
votes
0answers
7 views
Save tow entities with FK_id
I'm trying to save values in my database.
<button class="btn btn-success btn-lg pull-right " ng-click="saveclient(); savedemande(); saveCompte()" type="submit">Valider </button>
...
0
votes
3answers
28 views
Min and max validation
I have two inputs one for min and the other for max value.
How can I add validation so the min < max?
<div class="form-group">
<label class="control-label"> Montant ...
0
votes
0answers
20 views
how to use wow slider with angular?
i have this code
<div class="clearfix" id="image-block" ng-init="GetAllSingleProduct">
<div id="wowslider-container1" >
<div class="ws_images" ng-repeat="image in ...
-1
votes
2answers
22 views
AngularJS routeProvider not working
EDIT: Solved the problem, seems the '#' character that Angular uses caused the problem. Here are the correct.
Edit after WiRo's answer
(I use grunt for my http-server)
app.js
...
0
votes
0answers
5 views
Module 'lokijs' is not available
I am new in ionic I want to use offline data storage in my app. for that I use lokiJS in my ionic app.
I used "bower install lokijs --save" for add js.
but when I add lokijs dependency in my ...
0
votes
1answer
24 views
How to make a custom directive on angular?
I'm pretty new to angular and I'm doing a custom directive on angular, which will display a list, but I have no idea how to pass parameters from html to js, for example:
<div ...
-2
votes
1answer
11 views
angularjs doesn't working after postback in asp.net webform
Dear All,
angularjs script doesn't working after selecting an item from dropdown i.e after auto postback. Is there any way to solve it?
0
votes
0answers
4 views
Testing Angular using Angular Mocks: Provider '$$sanitizeUri' must define $get factory method
I'm testing my application using Angular Mocks and when it tries to create some module I have this issue.
describe('navRegisterOverrideSpec', function () {
var navigationServiceProvider;
...
0
votes
1answer
34 views
Unique ng-options in Angular
I am trying to get unique results in angular ng-options on a select box.
<select ng-model="nationality" id="nationality"
ng-options="player as player.nationality for player in ...
0
votes
1answer
26 views
What are each of the functions in this line of code in angular js alluding or referring to?
myMod.config(function($provide) {
$provide.provider('greeting', function() {
this.$get = function() {
return function(name) {
alert("Hello, " + name);
};
};
});
});
...
0
votes
0answers
15 views
Progress bar with ngRoute in angularjs
Hi currently i am using ngRoute to fetch template from backend. but because of the size of template, it freezes till the template is loaded. What i want is a progress bar that shows the status of ...
0
votes
0answers
16 views
create dynamic factory within a factory
I am trying to dynamically create some angular services (I am using js-data as a orm, and want to be able to register models dynamically)
I must be missing something fundamental, as this code does ...
0
votes
0answers
6 views
angular JS orientation change of device issue
I have an ionic app in angular JS.
Where I am working with canvas,Its height and width and window height and window width.
Here's what I am working. There is a canvas and a image over it. The canvas ...
0
votes
0answers
4 views
Pass service from angularjs to asmx method
my question is how to pass list to asmx file.Not able to call webmethod .
my service:(service.js)
angular.module('starter.services', [])
.factory('TestCarts', function () {
var tcarts = [];
...
0
votes
1answer
14 views
Angular ui-view inside another ui-view
currently working on an application where I am using AngularJS UI routes. After searching couple for hours for my problem on internet, still I am not able to understand how my issue will get resolved. ...
0
votes
1answer
22 views
AngularJS Duplicate GET request [duplicate]
I don't know why, but i have two duplicate request from my controller "AuditionCtrl" to database.
Please help understand this trouble.
here you can see two get request
Github my project ...
0
votes
2answers
7 views
How to choose field from model by current locale in Angular
AngularJs.
I have a model like this
animal: {name_en: "cat", name_de: "Kater", name_ru: "кот"}
So I want to use in html template appropriate field.
Something like this:
<div>{{ if(locale ...
2
votes
1answer
10 views
ngClick events not firing in Angular 1.5.5 component
Why doesn't clicking the button described in the template below work as expected? This blog post does the exact same thing.
'use strict';
angular.module('core').component('foo', {
bindings: {
...
0
votes
0answers
4 views
Spotify-angular redirects not working properly
The problem with this setup is that - the redirection url had the access token in front of it and hence my otherwise clause of $routeProvider gets executed because of the url structure and I get ...
0
votes
1answer
13 views
Angular2 select issue
The following code used to work in Angular 2 beta 13:
<select (change)="handleChange($event)">
<option value="">-- please choose an option --</option>
<option ...
0
votes
1answer
16 views
View doesn't get updated after a $http.get() response
I was just following a tutorial in which a factory makes a $http.get() request and returns data which is affected to a controller's $scope variable ($scope.classifieds which is supposed to be shown in ...
2
votes
2answers
20 views
Form not posting properly in angular js
I am having issues with format of angular app form post. Here is the html code for the form
<form class="col s8 center">
<h4>
...
0
votes
1answer
11 views
Custom filter using app.filter getting called before model is available
I have been trying to add my custom filter to filter out the main list based on locales. To get the main list, I am putting an ajax call. While trying to debug, it looks like app.filter seems to ...
0
votes
3answers
41 views
How to know which “a” tag is clicked? AngularJs Way
So I've already searched about this question but their answer didn't solved mine so I created a new topic. I want to get the text of in the a tag i.e.(solo/partner).
This is what's inside my ...
0
votes
1answer
7 views
Angularjs-$ngSource-DELETE: How to get response data which the server side returns?
Why the console.log(response) didn't inculde the response from server. How can I get the "1" or "0" which the SpringMVC return?
var app = angular.module('MyApp', ['ngResource']);
...
0
votes
2answers
13 views
ngDialog.open is not a function
when i try to invoke openDialog function form view i get the following error
ngDialog.open is not a function
here is my code
(function () {
'use strict';
angular
...
1
vote
0answers
10 views
Prevent angular material select list label animation
I am currently working with a select list with angular material but do not require the label animation on selection. I what the label to always appear on top of the select input as it would once you ...
0
votes
0answers
14 views
Angularjs performance for complex json
I have an angular app which needs to render atleast 2000 html elements on a single route. The data I am binding is nested JSON object (parent-child) using ng-template which is formed dynamically based ...
0
votes
0answers
4 views
block-ui-pattern has no effect
i am trying to implement block-ui into our angular application on an element by element basis. (everything is included, referenced and injected correctly)
We have been trying to implement
...
0
votes
1answer
19 views
Angular js route not working without # [duplicate]
I have removed # from url using below code:
app.config(function($locationProvider) {
$locationProvider.html5Mode(true);
});
It is working fine if I am access website using homepage link ...