Questions tagged [angular1.6]

144 questions
0
votes
1 answer

Setting up a bare bone angular 1 app

I'm trying to set up a small application to learn how to set up an angular 1 project (yes, 1. We are on 1 at the office and I want to learn it). Part of it works, but when I add another controller, it falls apart. My project looks like…
Learner
  • 97
  • 10
0
votes
1 answer

karma / selenium error - trying to access: http://:9876/?id=77115711

I ran karma start I am getting this: INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/ INFO [launcher]: Launching browser selenium_chrome with concurrency 5 INFO [launcher]: Starting browser chrome via Remote WebDriver ERROR…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
1 answer

How to do default load a default child route in angular 1.5 using ui-router

Hi I want to load a default child route as soon as i load the page Please check the code : $stateProvider.state('userlist', { url: '/users', component: 'users', data:{"name":"abhi"}, resolve: { users: function(UserService) { …
0
votes
1 answer

How to pass parameters to a $http request service in Angular 1?

Let's say I have a foreign API URL like http://something.com/name/age/gender, where "name", "age" and "gender" are parameters. As I need to retrieve that data from my Angular 1 App, I created a .service, that should use $http in order to get it.…
Captain
  • 105
  • 1
  • 15
0
votes
1 answer

I can't import ngResource into my App

I have an app made with Angular (angular 1.6) and NodeJS, and I can't import the angular library ngResource into my app. These are the steps I did: 1: in command line I input npm install --save angular-resource 2: in app.js: import angular from…
Captain
  • 105
  • 1
  • 15
0
votes
2 answers

How to import nwjs in ES6/typescript?

In ES6, I want to use this sample code in angular 1.6 code. var win = nw.Window.get(); win.on('new-win-policy', function(frame, url, policy){ policy.forceNewWindow(); }); These are the steps I did,(updated package.json) npm install nwjs in…
user17
  • 23
  • 5
0
votes
1 answer

AngularJs - How to wait for HTML before running business logic in Angular controller

I have got an angular controller that calls a resource and then puts the result in to a variable. Then in my HTML I am loping through the objects in that variable and rendering some HTML elements using ng-repeat. The problem I'm having is, for each…
Ayo Adesina
  • 2,231
  • 3
  • 37
  • 71
0
votes
1 answer

Angular 1.6 - Best way to bind an array of objects to checkbox inputs via ng-model

Having this table row in mind, I'm trying to dynamically enable/disable the appropriate checkboxes: function enableTheRoles(data){ var myRoles = [ {role1: true, name: "Role One", enabled: true}, {role2: false, name: "Role Two", …
bob.mazzo
  • 5,183
  • 23
  • 80
  • 149
0
votes
2 answers

Angular 1.6: Factory issue initializing values

I have the next 'problem' with Angular 1. I have this Factory that I use to get the data for the current logged user: angular.module('myModule') .factory('authFactory', function ($http, $rootScope, Session, api, backend_url) { var authFactory…
AlvaroAV
  • 10,335
  • 12
  • 60
  • 91
0
votes
0 answers

how to display an error from another controller (angular1.6)

Here I have my index controller which is in the index component which includes several functions that I call later in another controller: userParticipate() { this.ApiPartners.feliwayParticipate().then(res => { …
0
votes
0 answers

Alert when URLS changes from Angular 1 pages to Angular 2 pages

I have project in which some screens are in angular 1 and some are in angular 2 .When i have some unsaved data and i try to navigate to Angular 2 pages I need to trigger a alert or may be a console.log . how can i achieve this and also vice versa…
Teja Reddy
  • 99
  • 1
  • 2
  • 9
0
votes
2 answers

How to access gridApi in UI-grid with using $scope?

The app I am working on requires me to access the paginationChanged function which is only available to me if I were to add an onRegisterApi object to my gridOptions in the table. I need to access the paginationChanged function so that I can change…
0
votes
1 answer

Cannot set a form field to dirty

I've looked for an answer to this and come across several posts, but none of them are working for me. I want to do something simple. I have a button that is invisible until the form is dirty. This works great if I manually dirty the form. However,…
Wayne F. Kaskie
  • 3,257
  • 5
  • 33
  • 43
0
votes
1 answer

Umbraco 7 - Syntax Help - JS or Angular? - Loop through Umbraco Property Editors

I'm creating a custom section and in one of my controllers I am sucessfully creating an Arrary of propertyeditor objects. In my view this is working
Ayo Adesina
  • 2,231
  • 3
  • 37
  • 71
0
votes
0 answers

Inheriting factories in Angular 1.5.x with Typescript

I'm trying to introduce Typescript to my existing Angular 1.5.x application. Currently we don't have the privilege to migrate the complete application to Angular 2. To get ES6 benefits I'm trying to use TypeScript. I stuck with one problem now.…
VJAI
  • 32,167
  • 23
  • 102
  • 164