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 ...
-2
votes
0answers
5 views
NodeJs for static content and web api C# for data
I need to build a highly scalable website, actually i need it to be as cheap as possible since my cash reserves are rather limited.
Apart from various caching strategies and so forth, here is one ...
0
votes
0answers
12 views
ng-model : Doesn't work if input is already checked
I have a problem with my checkbox...
I have several checkbox and when I activate or when I deactivate a checkbox, I add or I delete things thanks to functions. At this level there, everything is good....
0
votes
0answers
7 views
Smart table st-search won't work
I've implemented a smart table in my page through ng-include and the st-search doesn't work. Here's my code :
Table
<div class="horizontal-scroll" ng-controller="SmartTableController">
<...
0
votes
2answers
15 views
To return the variables on onmouseup
How to correctly define the listener and a function to return variables?
I got a function that when you select text, to run a function and store in variables, but I would like to return variables so ...
0
votes
1answer
11 views
AngularJS: ngRoute Not Working
I am tying to get this simple routing to work and unable to figure out what is the problem.
This is the HTML:
<html lang="en" ng-app="app">
.
.
.
<a href="#...
0
votes
0answers
15 views
Ionic ng-repeat not working correctly
It seemed to work on phonegap correctly, however crashed a few times while making changes. However while installing ionic, covoda correctly via npm terminal this ng-repeat doesn't seem to work.
My ...
1
vote
1answer
22 views
how to react on event in AngularJS Controller
From Official Site:
https://docs.angularjs.org/guide/controller
Adding Behavior to a Scope Object In order to react to events
or execute computation in the view we must provide behavior to the scope. ...
0
votes
2answers
34 views
Angular 2 - Chaining Web Service Calls
I am attempting to make a few web service calls in a row, but the problem I am having is that the second call will be made before the .subscribe ever executes on the first call. I need the .subscribe ...
-4
votes
0answers
16 views
Library to implement next word prediction in front-end
Does anyone know of an JavaScript directive (ideally Angular based) that implements next word prediction in a <textarea> HTML element based on the text already entered? Or could perhaps suggest ...
0
votes
0answers
4 views
Angular2 ng2-fullpage.js afterload trigger in wrong context
I'm working with the fullpage.js for Angular 2 https://github.com/meiblorn/ng2-fullpage
I'm trying to trigger a specific method of my component when a page is loaded with this configuration :
export ...
0
votes
0answers
24 views
control the height of div when toggle div with angular directive - html /css
I'm using the following slider directive but i need to adjust it in the design.
I have div with 2 images and bottom bar
<div>
<img 1 >
<img 2>
</div>
<div bottom bar&...
-1
votes
0answers
8 views
angular grid / jqgrid/ webgrid - Which is the best stable way to enterprise application?
What is the best approach to bind a application in .Net MVC 5 with Razor Syntax with a grid? The grid must have these features:
multi-selection
Bulk conversion of selected values to a JSON quickly, ...
0
votes
2answers
25 views
“As” Angular ng-controller not working as expected
The doc makes me think that below, I should be using ng-click="ctrl.nextDay()" due to "GameController as ctrl". However, in that case, nothing happens and no errors are reported. Just ng-click="...
-1
votes
1answer
18 views
show success page if form is successfully submitted
How do i track if a upload is success and redirect to a certain page using angular and ng-file upload (https://github.com/danialfarid/ng-file-upload)
Currently it uploads the file but i need to show ...
-3
votes
0answers
23 views
Best web application tools [on hold]
We are developing a collage management portal. single interface total of college.
we are confused to which technologies to develop responsive synchronized web application for life long?
i thought ...
0
votes
1answer
20 views
Detect Typing errors in AngularJS tags
I'm new at AngularJS, and there is one things which bothers me. It seems like there is no help at all, neither from the editor (I'm using Visual Studio with Resharper), nor from the browser / runtime ...
0
votes
2answers
26 views
Model updates in directive do not update view
angular.module('myApp')
.component('sideNav', {
controller: function SideNavController($scope) {
$scope.navigation = {};
$scope.click = function(key) {
$scope.navigation[key] = !$...
0
votes
0answers
18 views
typescript importing wrong angular
I am importing angular in my angular 1 app (in typescript) using syntax like below
import * as angular from 'angular';
This imports angular from angular-mocks and not from angular because of ...
0
votes
0answers
16 views
AngularJS Client Spring Boot Server - CORS Issue with TokenAuthentication Filter
AngularJS Client with Spring Boot server. I'm using Spring Security to secure the end points. I've attempted to set this up for CORS but there doesn't seem to be a clear concise way of doing it.
...
0
votes
0answers
11 views
AngularJs Ui-routing transition superseded
i find the solution AngularJS and UI-Router: 'Error: transition superseded' during angularjs unit tests but this not work for me.
AngularJs version v1.6.1
Ui-routing Version v0.3.2
0
votes
0answers
8 views
Flush all memory on reload in NW.js
I'm porting a huge angular.js / node App to NW.js. Everything was fine until I checked the memory usage of the App.
When the app started, the nwjs Helper process consumed 75MB.
After the first reload ...
0
votes
1answer
9 views
Prevent dragging in Angular UI Tree
is there any possibility to prevent user's dragging of Angular UI Tree nodes? There is an option "nodrop" and it works, but I would like to prevent dragging too.
<div ui-tree id="tree-root" ...
1
vote
0answers
20 views
What is the best method to keep a unique identifier in sync between AngularJS and database?
My Angular/Node application displays a timeline of user events. The user can add, edit, and delete events.
When a new event is added, AngularJS adds the event content as JSON into a timeline array ...
0
votes
0answers
18 views
Angular js creating leaflet directive
I am trying to create leaflet directive in angular 1.5 with blur-admin. I can see the map images loaded in inspector but is not visible in browser. I think the issue is with style. How do I style it ...
0
votes
0answers
8 views
Angularjs mdDialog - How to send back data to my first controller
I send some info to my md-Dialog using 'locals' attribute which works perfectly.
After the user presses a button he will send some info through $resource method and get a response.
I need to show ...
0
votes
0answers
38 views
how i can make submenu active on click
This is my HTML code:
<ul>
<li ng-class="{active : activeTab === 'tab one'}">
<a href="" ng-click="openTab('tab one')">
<i class="fa fa-th-large"></i> <...
0
votes
0answers
7 views
I don't runing odata v4 in angularjs project. $odataresource is not a function
My codeblock:
function ...($scope, $rootScope, $uibModal, DTOptionsBuilder, httpa, $odataresource) {
$scope.bildirimleriAl = function (bilgi) {
// bildirim listesini al
$scope.bildirimler =...
0
votes
2answers
17 views
Using angular 1.6.1 and angular-ui-router 0.3.2 make resolve issues
This is my module:
> (function () {
> 'use strict';
>
> // CREATE module
> angular
> .module('home', []);
> // Module's CONFIG
> angular
> ...
1
vote
1answer
12 views
Webpack, typescript and angularjs: issue while creating new project
I am new to webpack and typings, i am trying to setup new project.
I have globally installed the webpack.
Issues are
Even it is not allowing me to put the code of entrypoint.ts in a module like
...
0
votes
1answer
14 views
how to call $scope.$broadcast when use vm=this?
i use
var vm = this
instead, the use of $scope in the controller now I get this error after compiling the code. plzzz tell me what's the issue
//TypeError: Cannot read property '$emit' of ...
2
votes
2answers
27 views
AngularJS set default value in dropdown
I am using below code.
HTML code
<form name="profInfoForm" ng-submit="saveInfo(profInfoForm)" novalidate>
<div class="wrapper">
<div class="container">
<...
0
votes
1answer
19 views
probleme in AngularJs ng-view disappears and not showing view
Actually i am programming an angular js app,
So i have to show view in ng-view div
The div like :
<div ng-view>
</div>
But when the page is loading, the ng-view div disappears, no ...
1
vote
1answer
27 views
How to push values to an array of object in node js
"default_tabs" : [
{
"value" : "Ice"
},
{
"value" : "Gold"
}
]
I want to assign this values into another array in such a way that
it should look like below
...
-4
votes
0answers
19 views
How to get Emoji on body tag [on hold]
Is there a Emoji Javascript plug-in, that could effect alle text on a web-site?
Im using html5, css3, angularjs on .Net back-end
0
votes
1answer
11 views
$index is tracking elements which are hidden by ng-if
<tr ng-repeat="materialOffer in Vm.materialoffers track by materialOffer.id"
ng-if="!materialOffer.containMaterial && $index >= startIndex && $index < endIndex">
</...
0
votes
3answers
22 views
Reload data controller json
Hello here's my json :
[
{
"name": "AAAAAA",
"data": "False",
},
{
"name": "BBBBBB",
"data": "45%",
},
{
"name": "CCCCCC",
"data": "...
0
votes
2answers
17 views
How to load json file content to variable
I have json file in my file system. Is there any way to load content into variable?
I tried this:
vm.timeZones = require("timezones.json");
but it gives this error:
ReferenceError: require is not ...
-1
votes
0answers
10 views
Watchers fired in the last 5 iterations
I am new to angularjs, I have an angularjs application and when I launch it from windows directory containing high-ascii path (e.g C:/áááááÃDEM/launch.html) there are lots of below errors in browser ...
0
votes
1answer
11 views
how to pass url using angular js in facebook sharing button
This is html sharing button which on click share the url given in
data-href.
Problem: I want to pass the url according to conditions using angular js.
I have stored the url in $scope.sd how to ...
2
votes
2answers
27 views
Controller replaced with Component angular 2
I am little confused to differentiate between Component vs Controller. How Controller replaced with component in angular 2? I read about component:
In Angular, a Component is a special kind of ...
-2
votes
0answers
14 views
How to implement socket connection server to client? [on hold]
I am using Sails.js framework, so I have added the socket.io module
var clientio = require('socket.io-client');
Sails Controller :
clientio.emit('message', 'Hello My Client');
AngularJS
socket ...
1
vote
1answer
20 views
passing data to the styles component angular2
How can I pass data from angular tag to the styles in the @component?
Here is my component:
import { Component, Input } from '@angular/core';
@Component({
selector: 'icon',
template: `<svg ...
1
vote
1answer
33 views
Angular - storing checkbox values, and displaying them
Suppose that, you have 27 checkboxes, let's call them 'categories'. These checkboxes are in one section, you can select them multiple, and save.
The eseence is: if you save the form, the categories ...
0
votes
0answers
12 views
$watch some function & prettyPrintExpression example - AngularJS
I was learning different examples of $watch. I came across below signature:
function(watchExp, listener, objectEquality, prettyPrintExpression)
watchExp: The expression being watched. It can be a ...
0
votes
1answer
12 views
Node express API not responding well to Angular $http calls
What's happening is that I can't get succesfully loged in into the Node API when hitting the login route from the website via Angular $http.post() request, But it does Works pretty well when testing ...
0
votes
0answers
18 views
Selectpicker city not update after change country
The problem: the city is not updated after selecting the country, are the old data
but after you select any item from the cities, the city updated on the selected country
Even in the example we'll ...
1
vote
0answers
23 views
How to upload pre-rendered file on S3 and access that on initial load of our webpage?
I have my web application implemented using Angular Universal Starter kit.I want to upload the pre-rendered file to the S3 bucket so that my initial page gets loaded faster.But i couldn't find the ...
0
votes
0answers
15 views
Animate AngularJS Material input's text with changed position?
I have a normal input using AngularJS Material:
div
md-input-container
label Area
input(type="text")
md-input-container(class="phone")
label Telephone no.
...
0
votes
0answers
19 views
How to Query Data From Firebase Into AngularJS
Hope some of you can provide me with some suggestions on how to Query Data From Firebase into my HTML Page.
Controller
.controller('cloudCtrl', ['$scope', '$stateParams', '$firebaseArray' ,// $...
0
votes
1answer
20 views
What exactly is the FLUX architecture? [on hold]
Can anyone explain me in plain English what exactly is the Facebook's Flux architecture? I am coming from an MVC/Angular background and I find it quite confusing about the Flux's unidirectional data ...