Tagged Questions
AngularJS (a.k.a. AngularJS 1) 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 applications are also frequently known as ...
0
votes
0answers
3 views
Bootstrap popover jumps to the top of the screen
I am using angularui bootstrap popover. Everything works all good except when I open the popover and click on the popover content, the popover jumps on to the top left corner of the window. Can you ...
0
votes
0answers
6 views
Dynamic table rendering by JSON data
I have something challenging requirement and looking for solution to render it dynamically. I would request experts to help me on below requirement.
I need to render the data as per the above format ...
0
votes
0answers
3 views
Ionic Popup ng-click not working
I have a modal in Ionic that shows a list of country flags for the user to choose, however my ng-click on the language flag don't appear to fire the $scope.function() I have assigned. Here's what I've ...
0
votes
1answer
6 views
How to synchronize backend timer with mobile app
I am developing a app that chooses a user and has a 15 sec. timer for that user to respond. The user app queries the db every 5 sec to see if that user is chosen. If so The mobile app begins a 15 ...
0
votes
0answers
8 views
Jasmine unit test controller
I need to check two thing here:
The response length. specified the mock data as [{ name: 'John', id: 1 }, { name: 'Josh', id: 2 }] so the response length should be 2. it is failing this test always ...
0
votes
0answers
4 views
Can satellizer, a AngularJS Token-based Authentication package, be used to create a token to used for API requests other than logging in?
I work for a start-up right now, and we're in the process of wanting to grab data from LinkedIn's APIs to populate a resume builder. We are thinking of using satellizer as a means of handling OAuth 2....
0
votes
0answers
10 views
Mobile Angular UI: How to fade tab change?
How do I apply fade transition animation for tabs in Mobile Angular UI with this set up:
http://mobileangularui.com/docs/module:mobile-angular-ui/module:core/module:sharedstate/
-2
votes
0answers
11 views
Configuring angular application to be hosted on custom domain
I need someone to help me on configuring angular project done using angular 1.6 to be hosted using google domain rather than the one working on localhost. I am using json-server, to watch for db.json ...
0
votes
0answers
4 views
angular-cli: how to include 3rd party .css files with references to external images
I am setting up my project and I have couple npm dependencies which consists of .css/.scss files and .svg sprite files.
If I add path to style files which lives in my case under "node_modules" to ...
0
votes
0answers
5 views
How to pass events between two child routes - AngularJs 1 and UI Router
I am having 3 routes
Search form [call it form-view]
Based on criteria show a table of records [call this table-view]
Once you select a row from table- show the details[detailed-view].
...
0
votes
1answer
11 views
AngularJS ng-repeat - Cannot Get Module or Controller
Fairly new to AngularJS so I might have tried to run through this far too quickly.
I'm trying to display an img, a date and a string repeat into a div with AngularJS but no matter what I do I keep ...
1
vote
1answer
6 views
Remove object from a Firebase ListObservable
I'm developing a angular2 application with firebase as the datastore. The first step was to use a collection and to push objects into the collection:
this.weeks$ = angularFire.database.list("/weeks")...
0
votes
0answers
14 views
How can i prevent a partial view from loading and only load when i click?
I am working on a .net mvc project using Angular js, Razor & jQuery.
I have this Angular js code:
<div ng-class="{ active: panel.isSelected(1)}">
<button ng-click="panel....
1
vote
1answer
19 views
Filter array on a predicate angular 2
I have an object array that I want to filter the data by matching it to a predicate. The complexity lies in construction of the predicate, which in this case would resemble that of a query built using ...
0
votes
0answers
5 views
AngularJS $http transformResponse causing unit test errors
I'm trying to unit test a service, but I can't find any documentation which accounts for transforming requests.
In my test file I have the following code:
it('should send proper cancel ...
0
votes
1answer
24 views
How to assign angular setting to html attribute
I have an app.js that I'm modifying and have tried everything under the sun to pull out the settings.options.chatURL.value into an html iFrame scr attribute. closest I get is pulling out an alert ...
0
votes
0answers
9 views
JHipster 4 inconsistently updating
I am using JHipster version 4.02. I am new to JHipster and I am having an issue where changes do not seem to be consistently appearing in the browser. For example, adding entities generates new code ...
0
votes
0answers
9 views
Testing rest services using $http
I tested a rest service using request npm package by creating a node js project and using jasmine framework. You can find best example here: https://semaphoreci.com/community/tutorials/getting-started-...
1
vote
0answers
9 views
Angular $resource timeout config not returning an error
I'm trying to set a timeout limit of 10 seconds on a specific $resource request, but in all cases I'm getting a successful response, and am unable to test the error. I thought setting the timeout to ...
0
votes
0answers
12 views
jasmine.Promise vs webdriver.promise.Promise
Have this method in a Protractor page object test:
public navigateTo = (): Promise<any> => {
return browser.get('https://material.angular.io/');
};
Want to define the type that is ...
-1
votes
0answers
10 views
Symfony api authorization with form_login
I have created an application with backend in symfony3 and frontend with angular.
he bridge between those layers is of course an api.
I have used a default login page for symfony - that so called ...
0
votes
0answers
7 views
Protractor UnknownError: Error communicating with the remote browser. It may have died
I'm trying to run a set of e2e test with protractor and I keep getting this error:
/mypath/frontend/node_modules/selenium-webdriver/lib/atoms/error.js:113
var template = new Error(this.message);
...
0
votes
0answers
24 views
How to get the attribute value of checkbox
The following is the code that I am currently working with. How can I get the attribute value of aria-checked of ion-checkbox.
HTML
<ion-grid>
<ion-row *ngFor="let item of extra" class="...
0
votes
1answer
14 views
The time zone ID 'CST' was not found on the local computer
I am having problem in creating a shipment in MAC Operating System. In windows operating system the website works fine. Any Help would be appreciated
Thanks.
Code:
createOrUpdateShipment: function (...
0
votes
2answers
14 views
Why is my ngRoute not working
My ngroute works for my homepage however when i click the link to go to my education page it runs .otherwise rather then running .which('/education ... and showing the proper templateUrl
home.html
&...
0
votes
2answers
27 views
AngularJS: Move a div inside a placeholder div
I have the following html:
<div id="div1"></div>
<div id="div2"></div>
<div id="div3"></div>
<div id="div4"></div>
<div id="div5"></div>
&...
0
votes
1answer
10 views
How to call a function inside an Angular component triggered by jQuery events?
I have a third-party component that using jQuery (FineUploader). When a document gets uploaded, it fires an event in javascript/jquery and I need to, at that point, call a function that is inside my ...
0
votes
1answer
71 views
How do I use a function inside a loop inside a .then?
I have an Angularjs project that uses Restangular to access the database. I have three layers of data (say mydata, mysubdata, mysubsubdata) and there is a one-to-many relationship between each layer. ...
-1
votes
1answer
31 views
Angular - what are the ways to save/open simple data
I'm working on an application which has to show a list of <div> where every div has the same structure. For example:
<div>
<h1>{{title}}</h1>
{{description}}
</div>...
0
votes
0answers
11 views
Get info for multiple calendarsIDs using Google's Calendar API
I am using the Google Calendar javascript API right now to get data for one room/resource. I see there's a Resources.calendars api too but there isn't much documentation on how to use it. I'm using ...
0
votes
0answers
4 views
Facebook messenger checkbox plugin is not rendered
I am trying to implement Facebook Messenger Checkbox Plugin into my AngularJS application. I am following this guide https://developers.facebook.com/docs/messenger-platform/plugin-reference/checkbox-...
-1
votes
0answers
15 views
404 not found when trying to build a simplest flask angular website [duplicate]
I'm doing a simplest website to learn flask and angularjs, however, the running results is not as I expected, I think something is wrong with the path in html tag, tried many different paths, still ...
0
votes
2answers
15 views
MEAN Stack application: Toggle boolean value
I am using mlab and mongojs along with Angular. When I attempt to toggle a boolean value (onStatus), the button in the view toggles from off to on, but it crashes the app. When I check in the DB the ...
-1
votes
2answers
25 views
angularjs pass index thoruhg directive
i need help with this code.
<ul ng-init="round = 'round'">
<li ng-repeat="mesa in mesas" ng-click="selected($index)">
<div id="{{round}}"> </div>
MESA {{...
0
votes
0answers
33 views
What files you must import to your HTML in order to get your angular 2 app running? [on hold]
I'm sorry, but this is probably strange question but if I'm asking, than someone did a lousy job to explain it to me: Whenever you want to start fresh project with angular 2, you will be sent to the ...
-1
votes
0answers
21 views
How to use Angular 2 in the MEAN stack?
I've been learning the individual MEAN components for a while and instead of AngularJS I wanted to use Angular 2. I've tried to make a simple app, but I just couldn't get Angular 2 to work with ...
0
votes
1answer
15 views
Angular $http.get success handler not called in Jasmine unit test
I have a very basic factory service that I would like to unit test. I have tried $rootScope.$digest() and $rootScope.$apply() before the expect statements and neither the success or failure handlers ...
0
votes
0answers
9 views
Image upload not get fire when i choose the file
im trying to make this work since last week, and still a big nope, basicly i want to upload a foto to my server and save it there, on the same route i save the source for the image on my mongoose ...
0
votes
1answer
20 views
Why does Node/Express/Angular returns objects when it has to return more than one array
Say I have the following function in node
module.exports.getData = function (req, res) {
whateverDBProvider.query('SELECT * FROM TABLE; SELECT DISTINCT thisField FROM TABLE;')
...
0
votes
1answer
23 views
Submit a form with POST action using angular
I am trying to submit a form using angular1 but when I click submit I can't see the call being made to /create in Network tab of Chrome Dev tool.
My app.js is:
app.controller('MyCtrl', ['$scope', '...
0
votes
0answers
7 views
How to test angular services with functions that require parameters, using karma jasmine
I am new to karma jasmine and unit testing so maybe I am just misunderstanding something.
But suppose I have the following service called bar.
It has a function called bigVariableFunction that takes ...
0
votes
2answers
23 views
Conditional groupBy in ng-repeat
How can one apply conditional grouping in an Angular ng-repeat directive?
For example, in the below code, I want to groupBy:'var1', but only when some variable, or expression, dontGroup evaluates to ...
0
votes
0answers
6 views
Use GitLab CI to deploy app with ftp
I'm currently working on a little Angular Web project. And I found this great tool named Gitlab CI.
I read the docs and setup a node docker to build the webapp. Then I want to upload the builded app ...
0
votes
0answers
7 views
How would you add Bootstrap's panel-footer div to Angular-Ui's uib-accordion directive
I'm using the latest version of UI Bootstrap. In particular, I'm making use of the Accordion directive.
The Accordion directive adds a div with the Bootstrap's panel-body class. Everything then ...
0
votes
1answer
16 views
If scroll up then $scope value change
i have simple div with stuff inside:
<div>...</div>
and a scope for example:
$scope.test = false;
Is there a simply way to change this $scope to true, when i scroll up on div?
-1
votes
2answers
23 views
Get the params from angularjs in servlet
mainController
$scope.strings = {
str1 : null,
str2 : null,
str3 : null
};
$scope.strings.str1 = "str1";
$scope.strings.str2 = "str2";
$scope.strings.str3 = "str3";
$scope.login = ...
0
votes
0answers
12 views
Uncaught ReferenceError: System is not defined
I started to learn Angular 2 so I made a simple AppComponent that just lists 3 towns and a TownComponent for showing them individually,
thus the path for town is: http://localhost:3000/town/1
...
0
votes
0answers
3 views
How to make an iframe with sandbox redirect inside the frame?
I currently have an app that contains an iframe with sandbox so it prevents the frame from accesing top-navigation like this:
<iframe sandbox="allow-same-origin allow-scripts allow-popups allow-...
0
votes
0answers
16 views
Switch among different templates/views
I want to propose two layouts (ie, horizontal and vertical) for my contents. So switching in the selector will lead automatically to the corresponding layout. My current JSBin cannot accomplish this ...
-1
votes
0answers
22 views
ng-options bind to property name
I have a list of coffees, each coffee can be regular, decaf or both.
Regular coffee has a strength range.
There are different cup colors. Shades of red for decaf, and colorful for regular.
$scope....