These are chat archives for canjs/canjs
Guys, could you please explain to me which way to chose if I want to get element from stache on:event="someFunc(element)". According to the documentation I can use %element or @element, but both methods are deprecated. In browser console I can see "WARN: 31: @element is deprecated. Use scope.element instead." If I use scope.element I getting undefined.
The only one working way: get element from function arguments in vm.
Does can-connect support encodeURIComponent feature? I have a requirement that, # in URL should be replaced with %23.
Say initial URL is https://localhost:8080/sampleservices/api/v1/sample#name
it should be converted to https://localhost:8080/sampleservices/api/v1/sample%23name
Note: Without using a derived property, I should achieve this
const url = " https://localhost:8080/sampleservices/api/v1";
url obj looks like below:
I'm facing this issue while saving the data.
Approach what I'm trying for is something like below:
Not sure whether I explained the issue clearly but all I need is I have to modify the URL before it gets triggered.
scope.elementis what you should use, but if that is not working please file an issue and use
%elementuntil that is resolved
idis in your examples… if the base is
/api/v1, where does
urlobject isn’t working for your API, you can provide functions and completely customize how the requests are made.