These are chat archives for angular/angular.js

25th
May 2018
shailu26
@shailu26
May 25 09:48
did anyone know about angular-vs-repeat module (https://www.npmjs.com/package/angular-vs-repeat) what i am planning to do is i have 1 object and in that object i have nested object so i am using vs-repeat to show data of the object using ng-repeat and if i click on one data i am expanding inner object so i am once again iterating using ng-repeat but i am having scrolling issue, the issue is that i am not able to see full inner object list when i scroll it jumps to outer object
what should i do
do anyone using nested vs-repeat
Chilusoft
@chilusoft
May 25 13:31
console.log('hello world')
nerkartushar8
@nerkartushar8
May 25 19:09

Any trick to do this? Please help.

Hi guys,
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('$interpolate');
let $sanitize = this.$injector.get('$sanitize');
let html = $sanitize(toReturnStyles.cellTemplate);
 el = $interpolate(html)(params);

Then I checked adding <img onload="alert(0)"> </img>, I am good, alert didn't work.
But then I put following and I lost the land under my feet. I saw alerts

    {{constructor.constructor('alert(1)')()}}

Please help me implement this usecase correctly.
Thank you