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.
0
votes
0answers
7 views
Angularjs bad arguement ng:areq error
I'm getting this error when running my application. This error comes in only one controller. I have done other controllers in the same way but in this particular controller I get this following error.
...
0
votes
0answers
13 views
Get values from JSON without key in the table
I am trying to get the data from a json without keys in to a table.
[
[
"valu10", //row1 col1
"valu11", //row1 col2
"valu12",
"valu13"
],
[
"valu20",
"valu21",
"valu22",
"valu23"
],
[
"valu30",
...
0
votes
0answers
16 views
Does a function declaration have an automatic semicolon insertion?
This question is not the same as Does a function declaration need a semicolon? I know the answer to that one already.
Douglas Crockford says in his post that these two are the same: in fact, the ...
0
votes
1answer
8 views
How to wrap a JS script inside an Angular directive
I am learning AngularJS and I have a conventional JS Script that I wrote a while ago and I would like to use it inside my new Angular app.
Can I literally just dump the entire script in side the ...
0
votes
0answers
6 views
Using $resource and endpoints
I am learning Angular and am using $resource.
1) If you are only using the get verb would you really need to use $resource or would you just use $http?
2) Also if I have a url of http://mydomain/ ...
0
votes
1answer
8 views
Angular and django unable to load ng-bind
I have a simple angular file that is served by django..Im unable to bind angular
views.py
def home (request):
return render(request,'index.html',{})
index.html
{% load staticfiles %}
...
0
votes
0answers
7 views
How to add rootscope controller environment at module level?
In the below code,
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script ...
0
votes
0answers
19 views
How to check provider to see if HTTP data is ready
I am using the ionic beta framework for mobile development which uses Angular2 so I think this is more of an Angular2 question as it is more in regards to using a provider for HTTP calls.
My app ...
1
vote
1answer
16 views
Choose specific key then show specific value without ng-repeat
I'm using angular and I'm trying to display a value from a key-value pair based on the key. I've seen solutions to this using ng-repeat but that seems messy. Is there a better solution that doesn't ...
0
votes
0answers
8 views
implementation of angular scope and constructor
angular.module('appCtrl',[],function($scope,$http,$interval){
$scope.tick = 100;
$interval(function(){
$scope.tick -= 1;
},1000);
})
how to implement a constructor function ...
1
vote
3answers
25 views
ng-option starts from 2nd position
I have a $scope.forumList with [1, 2, 3], I want to use ng-option start from 2, what should I do?
<select name="forum"
ng-change="filterBlob()"
ng-model='f'
ng-options='f ...
-1
votes
0answers
13 views
Ionic popup and invoke of sms function
I am trying to create popup input for user to enter their mobile number and upon clicking of the button in the popup panel, it will send an sms to the provided number.
I had created a controller ...
-2
votes
0answers
13 views
What ways are there to display data from a database in ASP.NET with MVC6 and Angularjs?
I have looked at things like Smart-Table but I do not know if it is the best option. Is there a better way to show tables with pagination and search functions given the site is using asp.net with mvc6 ...
0
votes
0answers
7 views
Check localstorage value and pass parameters at state.go in IONIC
I have create an ionic app that will set the token value whenever a successful login is made by the user. Then, it will make use of $state.go to redirect the user to another tab "tab.scan".
When user ...
0
votes
0answers
19 views
AngularJS $ngresource without a function
So I'm expierecing a really weird bug with my bootstrap modals. Whenever I run the following:
function test(){
$scope.test = adminAward.query();
$scope.test.$promise.then(function (result){
...
0
votes
0answers
11 views
Why am i getting TS2300 Duplicate identifier 'angular'. when attempting to use typings for angular for Typescript?
Im new to TypeScript and i am attempting to apply it to an existing application
I used nuget to install the typings along with angular
PM> install-package angularjs.TypeScript.DefinitelyTyped
and ...
0
votes
1answer
17 views
Angular custom directive not repainting when the datasource changes
I am working on a custom directive in angular (1.4.8) to display an array of items in a vertical list with gradient background colors. I have put together a plunker to demonstrate. The directive takes ...
0
votes
0answers
11 views
Ui router url changed but views not are loaded for sometime not always
I am using AngularJS v1.3.17 and the latest version of ui router.
I've searched for this but i could not find solution for that.
I've migrated from ng route to ui router.
After implementing named ...
0
votes
0answers
9 views
window location hash is not working
I am using angular v1.3.17 and routing for AngularJS
@version v0.2.18
window.location.hash is not working.
In controller, when i want to navigate through url instead of state, I've used ...
0
votes
1answer
9 views
Firebase function not running until view change
I have a Firebase function inside an angular controller. There is a button that when clicked takes the selected option and the type input and stores them into the user's object like so:
{
...
0
votes
1answer
16 views
How can I easily filter on more than one property?
Using Angular v1.5 I've got a simple one property filter working but I would like to filter on two properties. Searching came up with some custom filters but that seemed like a bunch of code to just ...
0
votes
1answer
21 views
ASP.NET MVC and Web API in same project
I'm in the process of designing a website (ASP.NET MVC 5) initially that will feature a native mobile application down the road. I'd like to include ASP.NET Web API inside this project for the purpose ...
0
votes
1answer
24 views
angular js http get
I am not too familiar with angularJS and am having trouble trying to use http.get(). I am completing a QR scan and the text that is received from the QR code will then be placed into my url. The ...
-1
votes
2answers
20 views
How can I populate a form from an ng-repeat item
I want to be able to click on an ng-repeat ed row in a table and populate a form from the rows data. What do I need to have in my editplayer() function?
Heres the table and the form
<table ...
0
votes
1answer
17 views
How to change the color of the labels using Angular Charts
I need the labels for the bar graph to be a different color. Everything works just need the labels to be white rather than the default grey.
<canvas id="bar" class="chart chart-bar whiteFont"
...
0
votes
1answer
16 views
User authentication -not staying logged or saving rootscope - Ionic Firebase
Update: firebase error with local storage. Could really use some help! see comments for better understanding, Thanks!
How do I bypass the login screen if user has logged in? I tried using a rootscope ...
0
votes
0answers
6 views
How Can I Use a Remote Mysql DB with Smart Table Angularjs Addon in MVC and ASP.NET
I have tried almost everything, and googled the world back; I cannot figure out how to make a Smart Table work with my database. I don't know what I haven't learned and so learning it has proven ...
0
votes
0answers
10 views
Angular2 Navigation using Arrow Keys
I am working on a Angular2 project in which I have a list of items and clicking any item display its details page using item details component. I am trying to find a way to allow users to navigate the ...
0
votes
1answer
10 views
Angular - how to access multiple url parameters using $state
I have the following state in Angular routing:
.state("supplier/document", {
url: "/supplier/document/:supplierid/:docid",
controller: "ctrlSupplierDocument",
...
0
votes
1answer
12 views
Angularjs passing variable to a directive's controller
I am creating Angularjs Directive. However i need to pass a paramter to the directive and use it in its controller to populate its items using $http service.
i am passing a "listId" parameter to the ...
0
votes
0answers
15 views
Dyncamically loading HTML, JS etc. files
I am trying to implement a SPA (single page application) without using any framework. I figured that I need to first download all my application resources (HTML, JS, CSS etc.) on my first page load ...
-1
votes
0answers
9 views
template class expression directive restrict: C
VARIABLE
ii=[{value1:"value",value2,"myDirective"},{value1:"value",value2,"myDirective"}]
CONTROLLER
template: "<table><tr ng-repeat='i in ...
1
vote
1answer
11 views
angular material md-sidenav full height + lack of animation
I am new in angular and material.
I would like to acheive to have toolbar at the top with full height sidebar on the left fixed when the screen is big - toolbar should start from the sidenav. The ...
0
votes
1answer
17 views
Only show checked items angular
I have a page with check boxes on it and I am trying to redisplay the items the user has checked in the basket as they check.
This happens but if they uncheck the items dont remove from the basket. ...
-3
votes
0answers
19 views
How Can I use MongoDb with angular
I have a controller that I can use the functions in the template. I am using IONIC, but I can't access the mongoDB, How can I do it ? I have no idea how to do this.
$scope.InsertUser = function(){
...
1
vote
1answer
9 views
Intermittent problems displaying google maps in angular view
I've got a google map embedded in an angular view and it displays (as shown below - right) some of the times and then shows up as grey (below - left) when I refresh the page.
My reference to google ...
1
vote
2answers
17 views
Angular getting variable value
I'm learning AngularJS and I have problem with data binding.
When I try to get value from $scope.mytext i get {{mytext}}. Here is the code:
<!DOCTYPE html>
<html ng-app="myApp">
...
0
votes
1answer
29 views
How to set timer in controller?
I am a new in angular js and in this moment I am developing a simple aplication to organize tasks that employees doing during the day.
First of all, the user set the customer, description and start ...
0
votes
0answers
29 views
Lighter version of angular js
I have web application that is not really suited for one page application, but devs want to use angular.js there. The problem is that app needs to refresh page(I mean full http request for page, like ...
0
votes
1answer
12 views
AngularFire, how to show name/email on page through uid?
As the topic says, how do I print it out on the page?
A LOT of the other topics regarding this are using SimpleLogin which is now deprecated so not much use of it, therefor another thread..
I have a ...
1
vote
2answers
28 views
How can I convert this function into Angular directive
How can I convert this function into an AngularJS directive?
I want to make it validate user input in real time. But even when I'm trying to use it as regular function in controller I'm getting an ...
1
vote
2answers
20 views
Angular Factory - Why is my variable undefined?
I can't figure out why my messages variable is undefined within the displayMessage function in the code below. I keep getting an error that messages is undefined. "Cannot read property 'push' of ...
0
votes
1answer
21 views
how to access the class css properties from an attribute directive associated with the same element
Here is the component template
template: `<h1 class = "dragStyle" [drag] = "true">DRAG THIS ELEMENT</h1>`,
styles : [`
.dragStyle{
margin : 12px;
}`
]
Here is the ...
1
vote
0answers
10 views
angular-formly custom template for signature pad
So I'm trying to write a custom template for the angular-formly librarythat uses the signature pad directive as a field. I've been able to use the basic template method to get the signature pad to ...
1
vote
1answer
18 views
CSS class helper (Angularjs)
I use this module https://github.com/rpocklin/angular-scroll-animate
i try create new attribute when-visible-class="animated fadeInUp" but i get error
Directive: angular-scroll-animate ...
0
votes
0answers
13 views
$routeParams showing Url variable parameter
I am trying to use routeProvider to create a search page. Below I have something like so:
}).when("/search/:value", {
templateUrl: "app/views/search/search.html"
What I want to show in ...
0
votes
2answers
14 views
Why would I wrap a function in AngularJS $timeout service without a delay like they do in ng-file-upload example usage code?
In most of the fiddles containing sample usage code for ng-file-upload (https://github.com/danialfarid/ng-file-upload) like the one at (http://jsfiddle.net/danialfarid/maqbzv15/1118/), the upload ...
4
votes
0answers
25 views
Angular ui grid tooltip not working
I am having a problem to display header tooltip on angular-ui-grid.
Here is plunker demo.
Any idea how to make it work?
0
votes
0answers
9 views
Meteor-Angular error with related helpers
I have a directive with a controller:
controller: function ($scope, $stateParams, $reactive) {
$reactive(this).attach($scope);
this.helpers({
itinerary: () => {
return ...
1
vote
3answers
22 views
Working with multiple modules in different files in Angular js
Hello and excuse my english.
My problem is this: I'm a beginner to Angular js (currently learning with version 1.4) and I want to separate my application in two modules like this:
app.js
...