Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
236 views

i have this syntax on angular(typescript), my problem is when this code runs, its automatically runs clickShowAttachments function, instead i am need to run function when this button clicks ... ${data....
Amin Zekri's user avatar
1 vote
1 answer
447 views

I have a simple Angular template that is currently using string concatenation within interpolation as follows: <h4>{{ myVar.property ? myVar.property + ' IS NOT NULL' : '' }}</h4> What I ...
Slippy's user avatar
  • 153
0 votes
1 answer
61 views

I have created a custom directive where i am parsing information using data attribute but value of data attribute is null. Directive invoke code: <processInfo data="{{self.processInfo}}" type="...
aryan's user avatar
  • 43
0 votes
1 answer
153 views

I have this ternary operator in my html (working correctly) {{ qp.QP_TRANSFERS === '1' ? qp.QP_TRANSFER_TYPE_NAME + ' transfer' : 'No transfer' }} I'm using translation service from json objects. ...
leandronn's user avatar
  • 170
0 votes
2 answers
748 views

I'm trying to interpolate an nested property getter into angular html template: <div class="row"> <div class="col-xs-12"> {{ myObject.myProps.someProperty1 }} -- Not working </...
Shahar Shokrani's user avatar
0 votes
1 answer
140 views

I want to use angularJs string interpolation inside Jquery html function $('#existingScoresForWeek').html("<p>{{1 + 1}}</p>"); The above line of code is not printing Result as 2 <div ...
Ankit Gupta's user avatar
1 vote
0 answers
51 views

I need to accept html input (template) from user. I need to then compile it using angular's $interpolate function. So when I get the html from user, I do this. let $interpolate = this.$injector.get('$...
Ganesh Nemade's user avatar
5 votes
1 answer
717 views

Building a project in angular5 where I want to use [[ ]] for interpolation as start and end symbol. Previously , Angularjs1.x has $interpolateProvider to customize these symbols, by default ...
Anil Arya's user avatar
  • 3,119
0 votes
1 answer
65 views

I have this string : this.badge = `<span class="badge">{{ notification}}</span>` to interpret the {{ notification}} expression I do : this.badge = this.$interpolate(this.badge)(this) ...
Mouad Ennaciri's user avatar
-1 votes
1 answer
102 views

I have this array stateData.submenu : [ { "template": "<span>myContacts</span>", "sref": "contact.list" }, { "template": "<span>myProjects</span>", "sref"...
Mouad Ennaciri's user avatar
0 votes
0 answers
97 views

I have this array stateData.submenu : [ { "template": "<span translate>myContacts</span>", "sref": "contact.list" }, { "template": "<span ...
Mouad Ennaciri's user avatar
0 votes
1 answer
331 views

I have a custom directive and rendering that directive using ng-repeat. what I need is I want to compile interpolation before passing into my custom directive. Find plnkr below https://plnkr.co/edit/...
Kbvin's user avatar
  • 216
2 votes
1 answer
321 views

I have a html page in Ionic 2 where I am generating ion-slide using *ngFor and I want to pass the data from ngFor to the footer in the same page. <ion-content> <ion-slides> &...
Suneet Jain's user avatar
1 vote
1 answer
87 views

I am illustrating a stacked graph along with its table and fetching its json data with $http.get() and setting it to $scope.dataset html: <input ng-model="_searchQuery.key1.key2"> <tr ng-...
DragonKnight's user avatar
  • 1,900
0 votes
1 answer
1k views

I am discovering the AngularJS directives and I am facing a problem for binding attributes of an object to a template. I have a list of items of different content type (jpg, mp4) and I am trying to ...
Frédéric Lopes's user avatar
1 vote
2 answers
2k views

I am trying to understand Interpolation concepts in Angular JS and I have written this code. I am trying to enter a text in input box and based on the template in text area tag it should replace the ...
ang123's user avatar
  • 33
1 vote
0 answers
131 views

i'm having an issue trying to get a directive work as a value of a translation. here's what i have scope.value = '<img class="picture portrait" ng-src="' + url + '"></img>'; scope.key = '...
Noé Maillard's user avatar
2 votes
1 answer
856 views

I'm trying to do something similar to this interpolateProvider in AngularJS 2 but can not find how to do this similarly for $interpolateProvider.startSymbol('[['); $interpolateProvider.endSymbol(']]'...
Hemant's user avatar
  • 31
0 votes
1 answer
558 views

In AngularJS, $filter provides a way to format the data we display to the user. However, $interpolate also allows us to live update a string of text. Are $interpolate and $filter related to each ...
Aaditya Sharma's user avatar
1 vote
1 answer
523 views

Just wanted some clarifications. I was told that you are suppose to use ngAttr when there are interpolated markup. For example: <div ng-attr-name={{Name}}></div> I also seen some codes ...
Ron T's user avatar
  • 407
1 vote
0 answers
415 views

I have been trying to pass the ID of a SVG element generated by ng-repeat. each one has a cx, cy, and an id: $scope.circles = [ {cx:25, cy:40, id:1}, {cx:55, cy:40, id:2}, {cx:75, cy:40, id:3}]; ...
Par Scott's user avatar
2 votes
1 answer
603 views

A follow up to this question: AngularJS data bind in ng-bind-html? What if the values which I want to interpolate are attached to a ng-repeat created scope? myDict = {'Suggestion' : $interpolate('...
user2263786's user avatar
1 vote
4 answers
2k views

Well, I don't know how I can use "dynamic" variables on ng-click attribute. In this case, i want update variable from reference in ng-click ng-if etc. My idea is update variables from reference and ...
Olaf Erlandsen's user avatar
1 vote
1 answer
1k views

In this template: <label for="condition">Condition</label> <input type="range" min="0" max="4" name="condition" [(ngModel)]=&...
Benny Powers's user avatar
  • 5,956
1 vote
2 answers
270 views

I have a very simple app where I'm trying to call my controller's function like below var app=angular.module('test',[]) app.controller('ctrl',function($scope){ $scope.func=function(){ alert('...
Rishi Tiwari's user avatar
  • 1,049
0 votes
1 answer
251 views

I have following code in my django template : <li class="item" ng-repeat="(key, value) in products" style=" "> <a href="{% url 'appname:productdetail' 150 %}" class="icon">View</a&...
Always_a_learner's user avatar
2 votes
0 answers
227 views

I am working on an application, Where multiple ng-app are defined and used. Initially ng-app on different pages were not conflicting as all the pages were independent but now I have to include a ...
Always_a_learner's user avatar
0 votes
1 answer
803 views

Firstly, apology if this question does not make sense. I am developing code for session management for my mean stack app. From last few days, i found lots of way to implement it which are using either ...
jatinder bhola's user avatar
5 votes
2 answers
5k views

I have an AngularJS expression enwrapped in a <a> tag. The expression is evaluating an allow variable. <a href="#" >{{allow}}</a> In case allow is null or undefined Angular shows ...
Sagar Sinha's user avatar
0 votes
2 answers
136 views

I'm looking for suggestions on how to do the following: I have a 'translation' service to convert keys into a string (for localization). A directive 'local' calls this. It looks like this: <local&...
Dave Combs's user avatar
0 votes
1 answer
1k views

I have a template: var template = '<div ng-click="sayHello()">{{text}}</div>' I compile it with my object with: var obj = {}; obj.text = "Hello!!!"; obj.sayHello = function(){alert("hi!")...
Mike's user avatar
  • 829
0 votes
2 answers
906 views

In my app I have a controller that takes a user input consisting of a twitter handle from one view and passes it along through my controller into my factory where it is sent through to my backend code ...
phizzy's user avatar
  • 966
2 votes
3 answers
54 views

This is the code that I am using to get images: <img ng-src="{{url}}{{product.image}}" class="product-image"> But it wont fetch the image. it only gets the file path but not the product image ...
Ryan Byrne's user avatar
1 vote
1 answer
523 views

I have to render a string (item.tabs.review.content), that is parsed into HTML using $sce.trustAsHtml. The main issue I am having is that within the string are references to an array in the item ...
John Spiteri's user avatar
1 vote
1 answer
469 views

I am currently trying the 'new' ES6 + Angular combination and got stuck on interpolating a html string in a directive that contains scope bindings. I have tried the following option: Current ...
Max Sassen's user avatar
4 votes
2 answers
6k views

Is there like a kind of ng-placeholder or something similar ? I want to put a default placeholder which is Risk, that is for an input which is a calculation input, sometimes the calculation last 2 ...
Non's user avatar
  • 8,629
6 votes
1 answer
2k views

I have a variable x = "http://example.com?a={{a}}&b={{b}} This variable is then used in a ng-src={{x}} Therefore it is important for me to url encode the variables a and b. What i do ...
David Michael Gang's user avatar
0 votes
1 answer
141 views

I'm getting a list of sandwich components from the server I'm working with, and they come back like below. Our sandwich shop has various rules as to what parts can go with what, so most of the ...
AncientSwordRage's user avatar
0 votes
1 answer
286 views

I'm trying to make a simple input that validates only by matching some data in scope, literally: <ng-form name="fooForm"> <input required pattern="/{{foo}}/" ng-model="...
Athan Clark's user avatar
  • 3,988
6 votes
2 answers
4k views

That is my question, what are the pros and cons ? In my app I am using interpolation but I get errors like this {{::sport.name}} -> NHL Futures &amp; Props and if I use ng-bind-html ng-bind-...
Non's user avatar
  • 8,629
15 votes
6 answers
61k views

I am trying to display a percentage value in my HTML as follows: <td> {{ ((myvalue/totalvalue)*100) }}%</td> It works but sometimes it gives a very long decimal which looks weird. How do ...
Abhishek's user avatar
  • 3,076
0 votes
2 answers
983 views

I have a strange problem when combining Laravel 5 (with Blade) and Angular 1.3. I am experienced with Laravel, but a newbie with Angular. I know that I have to change Angular's delimiters to be able ...
AFX's user avatar
  • 366
0 votes
1 answer
265 views

I've found a couple of other questions of people trying to put ng-repeat inside ng-repeat and that seems doable. But to accomplish what I need to do, I think I also need to put an interpolate from the ...
Christine268's user avatar
0 votes
2 answers
955 views

I have created a drop down input directive, where the user can pass in a template string to set what the list will actually render. In my example I am passing in <div style="background-color: ...
EasilyBaffled's user avatar
1 vote
1 answer
1k views

I have some some service. I wanna to debug it and see state of variables in this service. My code is below (explanation below the code): module.factory('Data', function () { var current = [], ...
Sharikov Vladislav's user avatar
4 votes
1 answer
2k views

I am seeing unexpected behaviour differences when using Angular interpolation {{ blah }} as opposed to ng-bind='blah' when using ng-translate. So given a really simple controller with $scope.name =...
steve's user avatar
  • 3,494
0 votes
1 answer
724 views

I have a template used in a directive, looking like : <tr> <th ng-repeat="col in tableSpec" st-sort="{{col.sortField}}"></th> </tr> The attribute st-sort should not be ...
jmcollin92's user avatar
  • 3,006
1 vote
1 answer
3k views

From what I have seen with Angular 2.0, I have a feeling I am going to be using Angular 1.x for a while. It has all the building blocks that I think I need, the only downside is that it does have ...
ryanzec's user avatar
  • 28.2k
0 votes
0 answers
259 views

I get an interpolation error but only sometimes. I refresh/load page a few hundred times without error or sometimes on first load it appears and shows up again after reloading/empyting cache etc. I ...
chriscross's user avatar
2 votes
2 answers
1k views

Is there a way to prevent interpolation on a div? I want to grab the raw html from it and interpolate manually by injecting $interpolate like this: $scope.report = $interpolate($("#myDiv").html())($...
adam0101's user avatar
  • 31.5k