Questions tagged [angular1.6]

144 questions
0
votes
1 answer

Angular.js (1.6.9) conditonally apply class using $eval

I am trying to use ng-class to apply conditional formatting within an ng-repeat. The condition should be based on evaluation of an object data string. I am trying to get his code to apply bold to the 3rd item. I have done my best at trying $eval or…
cycle4passion
  • 3,081
  • 3
  • 14
  • 28
0
votes
1 answer

how to dynamically set title and description of angular single page application for google bot?

i want google bot to recognize titles and descriptions of my pages, the title and descriptions are coming from the database.. i used document.title = $scope.dataFetchedFromDB.title; and document.querySelector("meta[name='description']").content…
0
votes
1 answer

AngularJS V1.6 JSONP is giving $http.badjsonp error

I am trying to get details from an external API but got stuck in getting the JSON response. Here is my service code: angular.module('app').factory('appService', appService); appService.$inject = ['$http','$sce']; function appService($http, $sce) { …
Chaitanya
  • 15,403
  • 35
  • 96
  • 137
0
votes
1 answer

jasmine test cases for services that return DS.defineResource Object

can someone help me in testing the below code. My function goes as follows function BiAlertsService(DS,companyUrlConfig) { return DS.defineResource({ name: 'bi-alerts', idAttribute: 'id', endpoint: companyUrlConfig.companyApi +…
rajesh
  • 1
  • 1
0
votes
1 answer

Using directives in angular

I am quite new to angular. I am trying to manage a list of contacts to be able to select one to display some details on the side. I was able to do it without directives but then I wanted to use directives and be able to show which one is selected in…
Ludodo
  • 3
  • 2
0
votes
5 answers

AngularJS: How to get changed key and value from existing object in form?

I've an object which contains 100 keys, value pairs. $scope.obj = { key1: value1, key1: value1, . . . key100: value100 } I have 100 inputs
Mr.Pandya
  • 1,899
  • 1
  • 13
  • 24
0
votes
1 answer

How to repeat row in table in angular js

Here my code useing in php @for($i= 0; $i < 15; $i++) @endfor but I want write it with angular+HTML I trying this but not…
inh_inh
  • 21
  • 2
0
votes
1 answer

AngularJS: Controller inside ng-view

I have problem with controller load when I triggered ng-route. This is my main page: