Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Frederik Prijck
@frederikprijck
@pjetr haha :D
Javi Gil Pascual
@xalxixo93_twitter
Any examples about how to use the new feature angular/angular.js@bc77575 to share XSRF token with other origins?
Steven Vachon
@stevenvachon

is:

const deferred = $q.defer();
deferred.resolve({});
return deferred.promise;

the same as:

return $q.resolve({});

?

hemanthunravel
@hemanthunravel

@hemanthunravel
Hi guys
when I use "orderBy" on object and try to order by 'value.vcores.max' ,it is not ordering

<tr ng-repeat="(k,v) in $ctrl.Data | orderBy:$ctrl.orderByField:$ctrl.order">
<td class="key" ng-bind="v.key"></td>
<td ng-bind="v.value.vcores.max"></td>
<td ng-bind="v.value.vcores.min"></td>
</tr>
what will be the reason?

Frederik Prijck
@frederikprijck
@stevenvachon It will have the same result, but u wanna avoid defer if you don't need it (and u often if not always don't need it).
Steven Vachon
@stevenvachon
yeah, it's not my code
Ravi Rajput
@Ravslee
@Ravslee
hi I am buikding a blogsite and I am in need of textarea with toolbar menu
how to develop such toolbar like stackoverflow
is there any lib available?
juliusneria
@juliusneria
hi
blake schwartz
@bschwartz757
just curious - has anyone found it necessary/useful to run angularjs 1.7 through Babel? I noticed it caused my build time to tank, but then realized there shouldn't be any need to run the core lib through babel
Rasool Ghafari
@rasoolghafari

Dear all hi;
could everyone help me?

https://goo.gl/iFiCUv

i want to pass data to state when using $state.go, note don't want to use state parameters. because state parameters are readonly and i want to change that values in specific service using $transition$.params() and can not do that.
Rasool Ghafari
@rasoolghafari
also my main problem is that i cannot change state parameter values from service or either controller.
Melvin
@iammelvin
Hi
How to use multiple themes in a single web app (Landing page html + Dashboard )
Melvin
@iammelvin
Since i have multiple css files for two themes they collide with each other so what is the correct way of adding css and js files ?
a.nvlkv
@anvlkv
Hi Guys, is there something like @ContentChild in angular.js?
nerkartushar8
@nerkartushar8

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

blake schwartz
@bschwartz757
Hello, I've got a really weird issue. I'm upgrading from Angular 1.3 -1.7 and from Jasmine 2.5 - 3. In a test that was working previously, I've got some code that dispatches a MouseEvent('click'), which triggers a directive that toggles an input between type=text and type=password. With the upgraded libs, I can see that the checkbox is getting checked and the event is getting dispatched, but the really weird part is that Angular seems to think the state of the checkbox is 'pristine' even though it's set an attribute modified="true" on the checkbox....
Here's the checkbox before the click event: <input type="checkbox" name="togglePasswordDisplay" ng-model="vm.displayPassword" ng-change="vm.showPasswordClick()" class="ng-pristine ng-untouched ng-valid ng-empty" aria-invalid="false"> and after the event: <input type="checkbox" name="togglePasswordDisplay" ng-model="vm.displayPassword" ng-change="vm.showPasswordClick()" class="ng-pristine ng-untouched ng-valid ng-empty" aria-invalid="false" modified="true">
yet, if I check the form's state with $scope.formName.$pristine/$invalid/$error both before and after the event it says that the form is pristine in both cases, and also that it is invalid
shailu26
@shailu26
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
console.log('hello world')
nerkartushar8
@nerkartushar8

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

Diry2017
@Diry2017
1
Deepanshu Gajbhiye
@d78ui98
m
Mandeep Sharma
@mandeephub
hello there i have read in my tutorial chapter angular app is not safe so why it is beong so popular
Frederik Prijck
@frederikprijck
@mandeephub Can you elaborate on what unsafe means ?
Also, I'd advice you to try a different tutorial.
Mandeep Sharma
@mandeephub
it says being javascripy only web app created in angular is not safe at server side
@frederikprijck is this true
Frederik Prijck
@frederikprijck
What do you mean with server side ?
Mandeep Sharma
@mandeephub
@frederikprijck im just a beginer here
nutcrack
@nutcrack
@nerkartushar8 such a good question, i'm lining myself up to the queue.
Azkar Moulana
@azkarmoulana
when using a dom sanitizer to bypass the security trust level of url, I get this "SafeValue must use [property]=binding" in front of it, any knows how to bind the property and remove this?
raj singh
@dpnashsh_twitter
Hey need to convert and save a xlsx file to csv. How to do it using angular js or node js?
Dimitar Nikolov
@dimitargnikolov
Hi folks, I am using the modal directive from Bootstrap UI to display an ng component as a modal. Can anyone tell me why I would use the resolve argument to open(), instead of injecting a service into the modal component's controller? Injecting a service works just fine for me, but I want to make sure I am using best practices for the directive.
Mike McEachron
@nortain
@dpnashsh_twitter
If you're using node and npm there are a few xlsx to csv options. https://www.npmjs.com/package/xlsx
Damon Casale
@damoncasale
I'm trying to figure out why my transition is being ignored. How do I debug that?
In the browser's url, I enter "/signup" after being on the login page. (I'm testing a hidden signup route.) The page successfully navigates to /signup, but then tells me I have a transition error of "5" (ignored) and redirects back to /login.
Help?
blake schwartz
@bschwartz757
Hello, curious if it's still necessary/recommended to use babel-plugin-angularjs-annotatewith webpack? Are there any reasons to use ng-annotate instead?
Ravi Rajput
@Ravslee
Hello
Joey Rivera
@joey7040
hey guys im going to be taking a test on angular 2 for a job. ill be dropping questions in here if you think you know the answer lmk
Screenshot 2018-05-30 20.54.02.png
Joey Rivera
@joey7040
lol nobody is in here
blake schwartz
@bschwartz757
Yeah it's pretty dead in here