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 ...
1
vote
1answer
6 views
How to: Refresh AngularJS Route
I'm trying to create a Typescript SPA project through Visual Studio and I'm using AngularJS to handle the routing. Here's my config...
var app = angular.module("myApp", ["ngRoute"]);
app.config(($...
0
votes
0answers
4 views
Angular multiple md-theme-styles
I am just starting off with the angular material.
I have a blank page (basic setup) as below:
HTML:
<html lang="en" >
<head>
<meta name="viewport" content="width=device-width, ...
0
votes
0answers
5 views
Popcorn.js not working in Angular.js
I tried to add a simple test for popcorn.js in my angular project and nothing.
I am using ui-router.
I'm referencing popcorn.js cdn in my index.html
I added the following to one of my views:
<...
0
votes
0answers
2 views
Angular-meteor slick-carousel causes JQuery to load twice
I'm using Angular-meteor for a project right now and I had a question about using NPM. I'm using a specific library (slick-carousel... and also angular-slick-carousel), and when I install it via npm ...
-2
votes
1answer
9 views
Offline web application using asp.net
In my recent project we built a responsive web application that can be used across different devices.One issue i'm hearing from few users is sometimes they work in remote locations where they have ...
1
vote
1answer
12 views
Trying to repeat a value from a JSON API and AngularJS
I'm using PetFinder API with Angular to display a JSON list. The problem I get stuck in is how to ng-repeat an array. My current code is the following:
AngularJS:
awesomePF.controller('...
0
votes
0answers
6 views
Webpack + Karma + Typescript + Ng1: Uncaught SyntaxError: Unexpected token import
I have the following karma.conf...
var webpackConfig = require('./webpack.common.js');
webpackConfig.entry = {};
webpackConfig.plugins = [];
var globFlat = require('glob-flat');
var appFiles = ...
0
votes
0answers
15 views
AngularJS page life cycle
I have been working on Angular JS for sometime now. I am able to get the things done.
However, I am interested to understand the events and how they are wired together.
Most of the documents and ...
0
votes
0answers
5 views
atom html preview: doesn't respond to Angular controller
I'm using Atom editor to write some Angular code and I watch the preview HTML window to see how my looks.
I wrote the following controller:
eventsApp.controller('EventController',
function ...
0
votes
0answers
7 views
Angular event or command that signals the end of processing inherited directives
I'm currently coding a tab navigation example to gain practical experience with Angular. This example uses custom directives and controller inheritance.
Plunker can be found here.
The issue: once ...
0
votes
0answers
6 views
insert data with form and click on single data to open a add note page
I have created a form which transfers the data to firebase database this returns the data on a different page which displays the data how do I make every item clickable in order to open a notes pages. ...
2
votes
1answer
16 views
Can't bind to 'ngIf' since it isn't a known property of 'md-card-title'
I am learning Angular2 RC5 with Angular2 material libraries and getting it to run in a AspNetCore 1.0 app using VisualStudio 2015. I took a perfectly running Angular2 RC5 single page application and ...
0
votes
0answers
7 views
NGroute cannot find necessary pages
Here is my javascript:
angular.module("civapp", ["ngRoute"])
.config(Router);
Router.$inject=["$routeProvider"];
function Router($routeProvider) {
$routeProvider
when("...
1
vote
2answers
10 views
AngularJS - Access grand parent variable
The state controller has the following variable:
vm.stateControllerVariable = 1;
The state template has the following directive:
<div directive-aleluia></div>
The directive-aleluia ...
1
vote
1answer
24 views
quick way to escape html in $scope variable
I have a initial value of
$scope.abc = 'abc'
and perhaps under a click event I want to convert the value to
$scope.abc = '<h1>abc</h1>'
I know there are things like ng-bind to escape ...
0
votes
1answer
8 views
highcharts-ng - adding popover to legend items
I'm trying to add a popover to the legend items for one of my charts. I'm using twitter bootstrap and have tried the javascript method as well as the template method with no luck. When I try to use ...
0
votes
1answer
14 views
What is the difference between ^parentComponent or ^^parentComponent for require in AngularJS 1.5?
There are references of using
require: {
parent: '^^parent'
}
as well as
require: {
parent: '^parent'
}
at different places. Haven't figured out the difference between the two.
0
votes
2answers
15 views
angularjs ng-repeat drop down menu from json nested
I have the following example.json file:
[
{
"interests": [
{
"item": "art"
},
{
"item": "literature"
},
{
"item": "history"
},
{...
-1
votes
0answers
28 views
angular ng-show is not working
I have a registration form and I want to view some error messages, if e.g. login is too short, name is required... But when I run the application in Visual Studio, I see all error messages from form ...
0
votes
1answer
11 views
Repeating transcluded content in an angular directive
I'm trying to write a simple tree directive in Angular which will nest items, and repeat the transcluded content declared in the first call to the directive, in each of the repeated items.
I have ...
-1
votes
0answers
5 views
Example chat angular 2 php mysql
Im normal developing app with ionic, angularjs php and mysql. Now Im approccing to angular 2. I working before creating a simple chat with angularjs and php (storing data into mysql).
Now I found many ...
0
votes
1answer
40 views
Hexagon images odd/even CSS
So i have a hexagonal image and when i do ng-repeat i want the result to be as follows.
The width of the container has to be 448px and the images need to be responsive.
This is what i have tried.
...
0
votes
0answers
4 views
Any working examples with angular1, typescript, jspm(systemjs) and hot-reloading?
i tried to build it with systemjs-hot-reload, but unsuccessful.
I also found some examples here https://github.com/frankwallis/plugin-typescript. But only angular2 works, the example with angular1 ...
0
votes
1answer
15 views
Angular js change 'file' type to 'text' type
I have inputs that build from objects in array.
Everything got right but when input.type = 'file', Angular change it to text type and i cant figure it out.
Did anything notice this?
My template:
...
0
votes
1answer
14 views
angularjs controller script in partial view is not working
I have tried partial view with <ng-view> directive I have used another controller in the partial view with controller script in the partial view file itself but it does not work it show error in ...
0
votes
1answer
23 views
Can't inject ngRoute dependency in Angular
I can't seem to create a simple angular route in my current application, since it handles me the following error: Uncaught Error: [$injector:modulerr]
I have already injected ngRoute as a dependency ...
1
vote
1answer
13 views
Required fieldset html [Angular]
There is a way to required form fieldset and don't every input?
My point: the user can choose what to fill but will not have to fill all of the fieldset inputs
I have this two:
1:
<fieldset&...
0
votes
1answer
15 views
angular - scroll to clicked element
I think i might be missing something simple.
I have a container element, and an ng-repeat on the child element like so:
<div id="container">
<div class="activity" ng-click="myFunc($...
0
votes
0answers
15 views
Froala WYISWYG editor not showing the toolbar button
I start with project Froala editor with angular 1 , I follow the documentation step by step , I like to show insertImage button and insertTable but nothing is showing . this is my code :
var tb = [
...
0
votes
0answers
7 views
ui-calendar not rendered. no errors in console
i use ui-calendar. however it's not rendered and no errors are shown in console. did anyone experienced such a problem? However, when i miss ng-model attribute in html, calendar is rendered without ...
0
votes
1answer
27 views
How to show a loading message before filter with AngularJS?
I need to show some "Loading Message" when a filter is about to happen with AngularJS. My filter is fast, so I can't just show it before return the filtered data. My code:
.filter('filterName', ...
0
votes
2answers
10 views
How to Ensure Installation of Mobile Web App on Device Only?
I'm working on an AngularJS mobile web app and am getting ready to deploy to Firebase Hosting. Does anyone know how to ensure that only devices can install the web app and prevent desktop browsers ...
0
votes
0answers
4 views
Angular Mobile App authentication with ADFS
I am trying to authenticate Angular/Ionic App using ADFS 3.0.
Here, i am calling the ADFS url inside an Cordova InAppBrowser. The user Logs in the ADFS Screen.
But, i am unable to get the SAML ...
0
votes
0answers
7 views
How to update the edited information to the list without using database in angularjs
I'm creating an app using ionic and angularjs. I have car brands and their related car models listed in the first UI view.The scenario is, the user will select a car brand from list, so on selection ...
1
vote
1answer
29 views
Angular trigger js 'onclick' event
I'm trying to trigger an 'onclick' event inside of an angular controller.
<div id="galerie">
<h2>{{main.Page.title()}}</h2>
<hr>
<div class="row">
&...
0
votes
0answers
4 views
How to dynamically add items to the model using angular xeditable with checklist model?
How to dynamically add items to the model using angular xeditable with checklist model?
Issue:
click add shape it will create the model
click "no appliances" and add 1 or two items(it adds items to ...
0
votes
1answer
13 views
Creating custom field validation in angular
I have the following code/plunkr and for some reason the form.name.$invalid is always true (see the span just after the input box). Angular's documentation doesn't say much about how the $invalid ...
0
votes
0answers
8 views
Angular Datatables - How do I bind on window.load (function call works in browser debugger manually)?
How do I align the scroll position of angular datatables with the body as I scroll to the right or left.
https://l-lin.github.io/angular-datatables/#/withScroller
In essence, I need to make the ...
0
votes
1answer
15 views
ui.bootstrap.carousel is not appearing
For some reason I am not able to see, my Carousel will not appear. My project requires slightly different implementation than what is defined here. It should work fine though, I've outlined the ...
0
votes
1answer
11 views
Meteor collection in ui-router resolve
I'm trying to use meteor angular js ui-router resolve to load information of one user selected from user list.
$stateProvider
.state('userprofile', {
url: '/user/:userId',
cache: ...
0
votes
0answers
13 views
ngRoute is not loading desired template : URL
I am new to the angularjs. I am creating a basic app, where the home page has a menu drop down, on selection of a value trying to open another index.html.
Index.html has the ng-view template. By ...
0
votes
0answers
11 views
Prevent caching of index.html in angular.js app
I'm having an issue where index.html in my angular.js app is being cached (bfcache) in Firefox. A user has the site bookmarked, and whenever they open that bookmark after a new deployment, they get ...
0
votes
0answers
9 views
Angular Grid doesn't work as expected
In public folder in laravel project is stored ag-grid folder. Here's content of default.blade.php where are stored all links to css and js scripts.
<script src="https://ajax.googleapis.com/ajax/...
0
votes
0answers
17 views
Detect emoji in javascript / angular [duplicate]
How can you detect the emoji in javascript / angular ?
I basically want to enlarge the emoji if it's on a line by itself.
So if you have this:
<div class="message" ng-bind-html="message.body">...
0
votes
2answers
21 views
AngularJS: access json response in link function inside directive
I'm going to use a chart library called Plotly. I'm creating a directive so I can use the library with angularJS and reuse in the future if needed.
I want to pass to the directive a object that will ...
1
vote
1answer
27 views
Update/Create ng-submit and service
I´m trying to use ng-submit to update/create new posts in database. I use this HTML.
<form ng-submit="savePost()">
<input ng-model="post.TASK">
<input ng-model="post....
0
votes
1answer
21 views
AngularJS - Ng-repeat Clickable divs to reveal child records
$scope.webAppsDepartment = [
{ AppName: 'Unlock Case', Colour: '#AF1A3F', Apps: null },
{ AppName: 'Route Rec', Colour: '#00ABA9', Apps: null },
{ AppName: 'RW Database', Colour: '#AF1A3F',...
1
vote
1answer
20 views
Access to factory from protractor
Hi I have small factory (myFactory) in my application:
.factory('myFactory', ['$q', function ($q) {
function myMethod() {
.....
}
return {
myMethod: myMethod
...
0
votes
0answers
19 views
how to add the value of an input field as a value in a multidimensional array using angular js
HTML
<tr ng-repeat="sItems in items">
<td>{{sItems.item_name}}</td>
<td>{{sItems.item_category_name}}</td>
<td>{{sItems.item_price}}</td>
<td&...
0
votes
0answers
14 views
Calling a function from another modules directive
I am trying to call a function from one Module's Directive to Another Module's Directive but having issues:
angular.module('app.components.expandable')
.directive('appExpandable', appExpandable);
...