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
9 views
About node file path?
If I have some js or css files in the views folder,then how can I write the path to link thoes files?this is my file structure
0
votes
1answer
8 views
Angularjs check or word exist on url
My goal is get true on angularjs controller if url with #how htttp://www.example.com#how or false if url without #how htttp://www.example.com.
webApp.controller('ctrl',function($scope){
...
0
votes
2answers
10 views
ng-repeat or ng-options How can I automatically select the last row in a table ?
How I can I automatically select the last row in a table
ng-repeat="unit in selectedOrder.products" using something like select by track by $index == desc or alternatively ng-options
<div ...
0
votes
0answers
6 views
AngularJs views not rendering on Google Chrome. (No errors in console)
I have an angular app that has been running fine for a while now, but suddenly after a few feature updates it stopped working on google chrome.
It basically is not rendering any html, I can see ...
0
votes
0answers
10 views
angular controller-directive data binding - bind property inside object
I have two properties in my scope name and city.
If I change city, it reflects in directive. But when I change name, it is not reflecting in directive. I have intentionally passed name from obj ...
0
votes
0answers
18 views
How to attach attributes of a directive template to other elements than the parent in AngularJS?
I'd like to implement a directive that converts
<specialInput></specialInput> into something like
<div id="myDiv">
<label></label>
<input></input>
...
0
votes
0answers
13 views
Can't get angular-carousel to work
I am using angular-carousel to create a simple carousel. However, I cannot get it to work. Here's my plunker. I am using version 1.3.15.
There are no errors but I just get a blank screen as in the ...
0
votes
1answer
19 views
Django - How to read JSON with angularJS?
I'm using AngularJS post to get JSON from a Django server:
all goes well but when I get the response the JSON is not a "pure" JSON :
Django code:
def get_sim_list():
t_sim = ...
0
votes
0answers
6 views
Prepare different build for clients using gulp
I am going to prepare builds with gulp for my angular JS project. Here will be my final output.
-production
--client A
--js\
--controllers\
--services\
--directives\
...
1
vote
0answers
16 views
AngularJS : Controllers, Services, Directives, Templates very basic beginner and very appropriate usage
NOTE: Apologies as I have not explained the whole code as I don't have any issues in it. This is just a reference.
http://jsfiddle.net/4nil/puw6huv4/
As name suggests, it's not a question but a post ...
0
votes
0answers
8 views
Unable to integrate angular-chronicle in my angularjs project
I have added the chronicle.js file as a library in my angular-js project.
But when I try to inject it in a controller, I get this error:
Error: [$injector:unpr] Unknown provider: ChronicleProvider ...
0
votes
0answers
7 views
Angular: Next section shown before previous section hidden - using ng-show
I'm implementing a reusable step-by-step wizard directive in angular based on this example. It's working pretty well, but like in the example, I'm using ng-show to hide all steps but the current one. ...
0
votes
0answers
7 views
angular directive unit testing with jasmine with external template
I am trying to unit test angular directive which has an external template.
Sample code is given below.
var vsLogin = angular.module('vs-login', []);
vsLogin.directive('vsLogin', function ...
0
votes
0answers
8 views
How to create a thumbnail of base64 encoded image in angularjs application
I have a application where the images are coming has base64 encoded string where i am decoding it and showing on the google map,but for few images only part of the image is displayed so can i create a ...
0
votes
1answer
8 views
SEO meta tags in AngularJS apps
I update my meta tag description, title and keywords dynamically in an AngularJS app.
But when I use google webmaster tool or facebook debugger tool, it ignores the tags.
It fetches them as:
...
0
votes
3answers
32 views
Trying to get <img> tags from text with subString and indexOf
So I got a variable called text and in there are HTML entities.
My code is working fine, because I'm getting the whole <img ...> tag.
But this is the problem sometimes there are more then 1 ...
0
votes
2answers
10 views
Cannot set local storage on iphone safari browser
I have an angular website that use many local storage for storage my data. I have tested it on several browsers and devices, all worked. However, it doesn't work on iphone's safari browser, when i ...
0
votes
0answers
7 views
columnFilter plugin not working with Angular DataTables Server Side Processing
I am using Angular data-tables with server side processing, everything works fine if I didn't add the column filter But once I add the withColumnFilter option then search, pagination and records per ...
1
vote
1answer
22 views
unable to access $scope value in directive's controller
I have a simple app, but some reason I am unable to access the $scope values in the directive's controller.
app.js
var myApp = angular.module('myApp',['ngAnimate']);
controller.js
...
0
votes
1answer
18 views
how to create a file and insert json data to it in MVC
Hi i want to create file in MVC and insert JSON data into that file.
Folder location to create that file is
~/Content/File
please give any suggestion
1
vote
1answer
21 views
IONIC and angularjs: Nothing happends when using angular-ui-router in navigation component
Recently I followed an instruction about navigation use in ionic, however I test it but no use, and I really can't find where I went wrong. Bellow is source file, just two, one is index.html, one is ...
0
votes
0answers
12 views
Insert “Multiple Field Value” in the Same Column in MVC4?
I want to save the Multiple field Values in the same Column.
TaxField Table contain 3 Fields
1)TaxFieldID
2)DisplayName
3)PrintName
TaxFieldID = FD713788-B5AE-49FF-8B2C-F311B9CB0CC4
...
0
votes
0answers
18 views
How to route multiple controllers on AngularJS 1.4.8?
In this thread a similar question was posted an partially solved. How to route multiple controllers on AngularJS 1.4.8.
Assign multiple controller in $stateProvider.state
Q1: So having 5 ...
0
votes
1answer
10 views
How can I prevent ng-options from calculation until object is assigned a value?
I have a code in my app:
ng-options="method.name for selectedHelp.methods in selectedHelp"
But the whole select tag is hidden, until "selectedHelp" variable is assigned a value. How can I also ...
0
votes
0answers
9 views
Unable to find angularjs plugin with multi select zone area in image
Unable to find angularjs plugin with multi select zone area in image.
I am want select custom areas on image and get their coordinates.
I looked https://github.com/andrefarzat/ng-jcrop but this ...
0
votes
2answers
23 views
Angular - How to show modal reject reason in table?
I have small problem to solve.
I have modal controller rejectIssueModalCtrl.js
(function () {
'use strict';
function rejectIssueModalCtrl($modalInstance, issue, $rootScope) {
var self = this;
...
0
votes
1answer
29 views
how to get the current view contents only in angularjs controller?
I'm dealing with md-tabs-wrapper it gives the partial view of each category and a single save button as follow
The existing code for it
<md-dialog aria-label="Profile edit" ...
0
votes
0answers
4 views
[angularjs + codava]how to capture screen and share via sns
Am developing an app using html5+angularjs+ionic for mobiles(android , ios), now I want to implement a scenario as following: when user click "help" button, the app will capture the current screen and ...
0
votes
1answer
28 views
can any one tell me how can i remove preflight request from this $http header
//individual logins
$rootScope.setting.instances.forEach(function(ins) {
var header = {
"Accept": "application/json",
"Authorization": "Basic ...
0
votes
0answers
6 views
Handle error 422 using restangular
I am using restangular(customPut) to make call to a service to update 'password'. The service when called throws error 422. Neither error handler nor interceptor is able to catch the response. I ...
0
votes
0answers
15 views
Leverage browser caching in Angularjs + rails project
I am working on a Angularjs + rails project, I want to implement Leverage Browser Caching of images for optimisation of the website. Is there any way to implement this in an angularjs project.
0
votes
1answer
26 views
How to read File upload File Name in Alert Box in AngularJS ng-fileupload
HTML Code
<input type="file" file-model="vm.myFile" />
<button data-ng-click="vm.uploadFile($files)" ng-file-select ng-file-change="vm.uploadFile($files)">upload me</button>
...
2
votes
0answers
17 views
How to save image into your local folder using Angular.js and PHP
I need one help.I need to store image in my local folder using Angular.js and PHP.I am explaining my code below.
<div class="col-md-6 bannerimagefile" ng-controller="imgController">
...
-2
votes
1answer
20 views
Why does plnkr not running angular code?
I am trying to run angular code in plnkr on my chrome but its throwing an error: Angular is not defined: Plnkr Link. Interesting it is running as expected on my colleagues machine.
I am getting ...
0
votes
2answers
32 views
ngRoute dependency issue
http://jsfiddle.net/4nil/puw6huv4/
Here,
I am trying to inject ngroute dependency
var sampleApp = angular.module("sampleApp", ["ngRoute"]);
and trying to use routeprovider as below
...
-1
votes
0answers
4 views
XMLHttpRequest cannot load https://keycloak - Anglar authentication with keycloak
I'm trying to authenticate Angular application from keycloak but i'm getting following error.
XMLHttpRequest cannot load ...
0
votes
2answers
12 views
how to handle multiple delete and displaying 1 message using delete service in angular JS
When i check all lists in table, and press delete button, A DELETE SERVICE will be called.(Using AngularJS)
Problem is, i am using a loop, and on successful delete and unsuccessful delete, i am ...
0
votes
0answers
15 views
Having multiple dynamic select boxes angularjs
I built a csv contact importer using Papaparse. The site runs on angular.
This is my form:
<div ng-show="import_file_selected">
<form ng-submit="processImport()" name="importForm">
...
0
votes
0answers
14 views
How to resize 2 divs with VerticalBar in AngualrJS
I found one solution but it is used jQuery Reference.html and the directive code is like:
angular.module('mc.resizer', []).directive('resizer', function($document) {
return function($scope, ...
0
votes
0answers
9 views
Angular ui-router unloads template when refreshed
I want my default state to load home.html but nothing loads by default. When I click the link to Home, the state changes fine. If I type '/view2' into the url it changes to view2.html. But if I ...
0
votes
0answers
6 views
Using Casper to log-in a page with Javascript generated content
I'm trying to use casper to log-in to http://insider.espn.go.com/insider/pickcenter/.
Now issue is that when you click log-in button, a AngularJS generated fileds - username and password appear.
I ...
-2
votes
1answer
25 views
I am new to Angularjs and try to learn it from sample projects
Want to create a login page using angular without clone from github or any code sharing sites.can you help me?
-1
votes
1answer
13 views
I want when refresh the page show the tab active that is previosly selected, not the default one, using angular Js?
I am new in angular Js. I have a page with tabs, i want when i selected the tab and refresh the page then same tab will be shown, not the default one. how can I do this. Thanks in advance.
...
0
votes
2answers
9 views
Show download progresstext while file download in angularjs
I am developing an app using Angularjs and Cordova in which there is feature for download files from a list of files,while downloading i am showing a progress text to show the status of the ...
0
votes
0answers
10 views
Using AngularJS to get and play an MP3 file
Using AngularJS and $http, I am attempting to hit the Voice RSS API to convert a word into an MP3 of a voice saying the word out loud when a button is clicked on my view. I believe I am getting the ...
0
votes
0answers
5 views
Best practice for Kendo chart definitions with Angular
I'm building an angular application with a whole bunch of kendu-ui charts and I'm unsure of the best practice on where to put the kendo chart definitions.
Service
I have an Angular service that ...
0
votes
0answers
25 views
AngularJS: i'm suspecting calling the $http request doesn't update the view for jQuery
I think calling the $http request doesn't update the view for jQuery.
In my code below i'll be forming a tree structure with the json data.
var myApp = angular.module('myApp', []);
...
0
votes
1answer
20 views
I want handle two independent controllers without broadcasting $rootScope in agularJs
I did that with broadcast event into $rootScope.Now i am trying to do that without using $rootScope.Is that possible ?
Here is the code can check what i did with $rootScope
Example code here
0
votes
2answers
16 views
How to get directive's scope value to the controller in angularjs
I have the directive that find the elements height and need to have the same value to the controller from the directive.
I tried the below mentioned code and i could not find the solution, am facing ...
0
votes
1answer
7 views
md-warn switch for Angular Material
This codepen is a demo of Angular Material switch.
http://codepen.io/helpme/pen/rxNxXo
What is the difference between a switch with md-warn and one without?
<md-switch ng-model="data.cb1" ...