kindly correct me If I am wrong, but I think the check in the getter method is just simply if the custom permission has some value or not, but the check should be if the current user has that permission set or not. I am simply seeing the import custompermission statement and then a getter method to return true or false, but it is not checking for the existing user (the user who is currently accessing the component). And Thank you for all the effort on the bootcamp.
in documantation example for the lightning platformResourceloader is connectedCallback method used but in our session we are using the renderCallback method
Are getter , setter method called before RenderedCallback() ? I was trying to put the displayDate in getter method but getting Moment not defined error ...which made me think that getter are called first before RenderedCallback() ...is this true ?
As mentioned in the video, upload them as static resources and then load it using loadStyle. Whether it is good or not - it is completely based on the complexity of the component.
@TechJourneyWithAnkit Hi Ankit Sir ... How can we access the user ID,Name and all without interact with Apex(without wire Decorator if I'm not wrong)..please...how can we achieve this ???
Hello Ankit really an amazing session but once doubt is when we use static resources then we get feasibility to upload a text file , .css file etc but whereas when we go for contentAssetFile there will can upload only image form of data correct?
Superb as always. Thanks for sharing
Thanks Hitesh
east and west -Ankit LWC is best!!
This means a lot to me. Thanks buddy
Thank you, Dear Ankit. I found the session informative and valuable. I truly appreciate your efforts!!
Glad you like it
kindly correct me If I am wrong, but I think the check in the getter method is just simply if the custom permission has some value or not, but the check should be if the current user has that permission set or not.
I am simply seeing the import custompermission statement and then a getter method to return true or false, but it is not checking for the existing user (the user who is currently accessing the component). And Thank you for all the effort on the bootcamp.
it will check with respect to current user context
Thanks alot sir ..gained much learning!!!!
Glad you liked it
in documantation example for the lightning platformResourceloader is connectedCallback method used but in our session we are using the renderCallback method
you can use in any of these life cycle method. I prefer to do that in rendercallback method
why we use custom setting over custom object . please make a video of metadata,custom setting and their usecase
yes i will do that
Are getter , setter method called before RenderedCallback() ? I was trying to put the displayDate in getter method but getting Moment not defined error ...which made me think that getter are called first before RenderedCallback() ...is this true ?
Both will be called multiple times in life cycle. In your scenario it might be failing because custom javascript was not loaded
How can we use tailwind css and bootstrap in lwc, and is it good to use these in the project ?
As mentioned in the video, upload them as static resources and then load it using loadStyle.
Whether it is good or not - it is completely based on the complexity of the component.
@TechJourneyWithAnkit Hi Ankit Sir ... How can we access the user ID,Name and all without interact with Apex(without wire Decorator if I'm not wrong)..please...how can we achieve this ???
You can only access user id and is guest by importing for other details you have to use getRecord wire adaptor
Thank you Ankit Sir ..for the clarification.
Hello Ankit really an amazing session but once doubt is when we use static resources then we get feasibility to upload a text file , .css file etc but whereas when we go for contentAssetFile there will can upload only image form of data correct?
Yes. Upload the js or css file to your Salesforce organization as a static resource, which is a Lightning security requirement