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 applications are also frequently known as single-page ...
0
votes
0answers
6 views
Angular render template without binding
I've been at a loss on how to render an angular template completely to HTML without bindings.
Example:
scope.value = 99;
var template = '<div>{{ value }}</div>';
var linkFn = $compile(...
0
votes
0answers
11 views
Why my chart is not loading in partial?
I am an angular bie and trying to make a chart in a partial, I am using a little bit animation to display partials, my main work is to display charts I am using a template for charts which i have ...
0
votes
1answer
8 views
Custom angular circular progress bar SVG User Interface
I have developed my circular progress bar from angular-circular-progress github.
My current input was:
I need to modify the end of the progress bar with a small CIRCLE and a VALUE CENTRE of the ...
0
votes
0answers
11 views
How does $scope.$on work and $destroy get invoked?
Can anyone please explain about the working of $scope.$on and how does $destroy work in these two controllers. Like when I change the route, a different controller gets called, is that why $destroy ...
0
votes
1answer
12 views
angularjs routing template not working
below code works fine in stackoverflow console, but not on my browser.
BAsicall ngRoute not working for me.Appreciate your help. New to angularJS.
<!DOCTYPE html>
<html>
<script src="...
1
vote
2answers
30 views
Dynamic select with default selected
How could I generate a select element with options and default option mark as 'selected'?
For example, my options array:
$scope.options = [
{
"value": 1,
"label": ...
1
vote
0answers
10 views
npm error thrown after protractor run
I am having an issue after I run protractor that throws this error:
[13:51:33] E/launcher - Process exited with error code 100
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/...
0
votes
0answers
18 views
How to get character index onClick [HTML]
it's possible to know the character index onClick, relative to the HTML body.
I tried to search, without success.
I can't use Jquery, because i'm using Angular JS / Ionic
0
votes
0answers
33 views
Javascript dynamically created function expressions not working with onclick event [duplicate]
I am a Javascript beginner. i am creating function expressions dynamically and calling parameters with JSON from text file. the functions are being created correctly with the correct parameters and ...
0
votes
2answers
18 views
Property does not exist on type '{}' in Angular2
I have get data using http call. But, i have show above error in compile time.
user.component.ts
this._user.saveUsers(model).then(data => {
if(data.success==true){
this.router....
0
votes
0answers
9 views
How does Angular's $q differ from the Promises/A+ spec?
I recently got stung by Angular $q's behavior around throwing exceptions in then blocks: (jsfiddle)
const r = $q.reject(new Error());
r.then(null, () => {
throw new Error();
}).then(null, () ...
0
votes
0answers
9 views
how to restrict $stateChangeStart function when browser back function is calling
when i click browser back button both are calling so its showing 2 sub tab as selected please help me whats the problem in this code
$rootScope.$on('$stateChangeStart', function(evt, to,params,...
0
votes
1answer
10 views
$firebaseArray injector issue
I am working with angular and firebase and getting a problem in injecting $firebaseArray in the controller. Here is the code:
myApp.controller("MeetingsController",
['$scope','$rootScope','$...
0
votes
1answer
18 views
Gets “error TS1005: ';' expected”
I'm playing with Angular JS's tutorial file and trying to add third play library from my work. I downloaded the library and put it inside node-modules directory. When run this tutorial, I get TS1005 (...
0
votes
1answer
18 views
controller Syntax with transclude
I'm trying to customize directuve 'angular-popover'.
<a angular-popover
direction="bottom"
template-url="assets/app/common/templates/popovers/page-choose.html"
class="...
0
votes
0answers
38 views
How to customize input type number to work in all browsers?
I am trying to customise and create input type number, so that it shows the increase/decrease buttons in all browser(i.e. importantly).
But click is not working?
here my code:
<input ng-model="...
0
votes
1answer
21 views
How to have a two separate implementation based on some condition in angularjs
My situation is as below
function abc(){
if(someCondition){
// Implemention 1
} else {
// Implemention 2
}
}
This kind of situation is in the whole application, but I want to ...
0
votes
0answers
11 views
load element in directive angular
I would like to know how to insert a value into an input, when I insert a character, but by means of a directive, if I digito example: "enter" insert the word enter
<div ng-app="tomatela" ng-...
0
votes
0answers
6 views
Unable to find rest resource using spring boot with angular
I have my simple project setup like this:
angular-controller:
myApp.controller('signupCtrl', function ($rootScope, $scope, auth) {
"ngInject";
function successAuth(res) {
console....
0
votes
0answers
12 views
Custom validator on non-input like directive
I have this image-upload directive that I'm using which will take images and upload them to our cloud service for storage and displays them back to the user.
angular.module('bidrAdminApp').directive('...
0
votes
0answers
10 views
Custom Angular directive to hide or show elements in multiple views
I am working with Angular js into a modular application. When a user for a company enters the app, it determines the number of motor boats that have that company and in the menu view shows a ...
0
votes
2answers
34 views
How do you ignore error messages from an $http GET request?
I have a function that is supposed to see if my database has a particular link or not. I am unsure whether it is not possible to do this, or if I am just doing it wrong. I am using an Angular HTTP GET ...
0
votes
1answer
22 views
How to get AngularJS link to look/act like a Button?
I have the following code in my AngularJS template:
<button class="submit-button" ng-click="myCtrl.doSomething1()">
Do Something 1
</button>
<a class="submit-button" ui-sref="...
0
votes
0answers
12 views
How do I reaach a nested property in a JSON file with AngularJS in front end
I am using angularJS to show in frontend the data I have got from the server like this:
<h1>Name: {{vm.contact.firstName}} </h1>
<h2>Company : {{vm.contact.organizationName }} /h2&...
0
votes
0answers
10 views
How to manually run digest in an Angular component
I'm trying to write a controller like this:
export default class someServiceCtrl{
constructor(someService) {
this.someService= someService;
this.$isEditable = false;
...
0
votes
0answers
7 views
$resource Custom URL
Is there any way for me to pass a dynamic URL with $resource
factory('httpService', function($resource) {
return $resource(URL, { id: '@_id' },
{
'update': { method:'PUT' },
}
}
});
with a call ...
0
votes
0answers
5 views
datepicker position of multiple calendar
I have two datepickers one above the other in a form, I want to change the position of these datepickers.
0
votes
1answer
30 views
Can I clean up these ng-if statements in AngularJS templates?
I have the following AngularJS template.
<tr>
<td ng-if="condition1">
Hello World
</td>
<td ng-if="condition2">
A <a ui-sref="mystate1({a: 1, b: 2}...
-1
votes
1answer
16 views
AngularJS SEO issue
I have problem concerning SEO on my website.
Google doesn't care about the title markup, it takes description for results titles.
Here is a page.
How could i solve my problem ?
Thanks.
0
votes
0answers
7 views
ui bootstrap show popover for specyfic element
I have got dynamic content created by dynamic library, so for instant that library give me event :
vm.onItemClick = function (event, item){
event.evelment --> htmlelement
};
can i add ...
0
votes
1answer
15 views
getting location and running a function on a new window (following window.open) and not the old
I'm a junior dev' and trying to open a new window following ng-click on a button, then run a function with setTimeout on the new window in order to parse a parameter from the new window url. This is ...
0
votes
0answers
40 views
width returns ok but height returns 0
I have this code in angular inside my controller "myController" for calculating some points to paint image overlays:
$scope.width = document.getElementById('imageId').clientWidth;
$scope....
1
vote
1answer
15 views
Angular 2 Multiple Slot Transclusion
As of RC 5 the following syntax worked just fine for multiple slot transclusion in Angular 2
This was the template component with a selector statement-card
<div class="statement-card bottom-right-...
0
votes
0answers
14 views
Correct approach to events with parent & child classes
I have inherited an Angular 1.5.8 project. I've worked mainly with Backbone, which has a "very trigger event & subscribe" approach.
The project is pretty straight-forward: its basically 3 pages ...
-1
votes
2answers
23 views
angularjs display expression dynamically from controller value
I am bad at explaining i hope you guys understand my requirements and help me out here.
I have a view with ng-repeat below
<div ng-repeat="item in allitems"> {{displaydata}} </div>
i ...
0
votes
0answers
7 views
Install bower component (angular-qr-scanner) using Meteor
I'm trying to install Angular QR Scanner in my Meteor app. It seems the only way to install it is using Bower, however bower support for Meteor seems to be deprecated now for 1.3. I tried installing ...
1
vote
0answers
5 views
How to initialize Tooltips in MDL-Stepper?
I'm trying to make an MDL-Stepper, which is working nice, but I'm really struggling with getting tooltips to work there.
On other pages at my Website I'm using this javascript:
function ($scope,...
0
votes
0answers
8 views
AngularFire Permission Denied Error
// Problem is solved. It was because the authentication rules. Change them public or what you want initially to solve the problem.
I am trying to receive data from database.
My config information ...
0
votes
1answer
9 views
Is there a way to use Wikitude with Nativescript
I am working on an app, and the client is convinced that we need to go to the Nativescript path, that sounds fine but we need to make it work with Firebase + Mapbox and Wikitude.
My concern is to be ...
-1
votes
1answer
10 views
How do we include a header which is a angular js component into our index.html
I have a header component ,which has its own html and js file
,How do i include this component in my main index.html
0
votes
0answers
15 views
AngularJS + map directives = bad picture quality (not sharp)
In the couple of AngularJS applications I use different map APIs (via corresponding directives):
Google maps API (via angular-google-maps)
OSM data with LeafletJS (via angular-leaflet-directive). ...
0
votes
1answer
17 views
SQLite on IONIC "TypeError: Cannot call method 'openDatabase' of undefined
Im new with IONIC and I need help on using ngCordova. I am able to create database on my app.js. But I always get this error message when trying to access the database on my controller. "TypeError: ...
0
votes
0answers
15 views
How to automatically update a view with data from different controller in Angular JS
I have two chtml views 1) InventoryLayout and 2) Inventory.
Each view has its own controller (InventoryLayoutController and InventoryController)
InventoryLayout.cshtml
@{
ViewBag.Title = "...
0
votes
0answers
8 views
Reusing components in angularjs
A text box has been created in angularjs using custom directives. It has been used twice in the same form for different purpose. The value entered in first textbox appears in the second textbox also....
-2
votes
0answers
20 views
AngularJS doesn't work when setting module dependencies
I have a problem.
In my AngularJS html-file I have defined:
<html ng-app="mainApp">
And when I define the mainApp-module in my app.js file everything works fine.
var mainApp = angular.module(...
0
votes
1answer
19 views
Angular variable initialized using ng-init is always undefined [duplicate]
I am learning Angular js. i am newbie to Angular js. Now I am initializing variable using ng-init. But the variable value is always undefined. Please see my code below.
<!DOCTYPE html>
<html ...
5
votes
0answers
29 views
Force splice of ng-repeat array whilst using track by
Our application has a list of tasks, which can grow quite large. The main tasks list has a sidebar, and when a task is selected, it can be edited in the sidebar - which uses a different controller (...
0
votes
0answers
12 views
NativeScript - TimePicker Cannot get user modified value
I am unable to get the user modified value of a TimePicker. All I'm getting is the original value that I set in the control.
Here is my component template:
<TabView [(ngModel)]="tabSelectedIndex" ...
0
votes
0answers
16 views
Hi I am facing issue with SeesionStorage in Angular js. SeesionStorage value is clearing when reload page
app.run(['$rootScope', '$location', '$sessionStorage', '$http', '$route', '$interval', function ($rootScope, $location, $sessionStorage, $http, $route, $interval) {
$rootScope.globals = $...
2
votes
0answers
19 views
What is the best way to use Office ribbon commands with AngularJS app
I have an Office add-in, which is built with AngularJS (1.4) on top of ASP.NET MVC 4.5. I have a lot of functionality already implemented in Angular controller and service JS files.
Recently, I ...