This document provides an overview of topics covered in Day 2 of a 5-day Lightning Web Components learning series, including decorators like @track and @api, component lifecycle hooks, and using getter/setter properties. Decorators are discussed for managing reactive data, exposing public properties and methods. The component lifecycle is explained, covering the constructor, connectedCallback, renderedCallback, and disconnectedCallback methods. Upcoming sessions on events, data, and additional topics are also promoted.
Relax is a free, open-source app that provides fine-grained and bulk management of Batch and Scheduled Apex jobs. Join us to learn how to use Relax to mass-schedule a group of jobs, create ordered sequences of jobs that run on schedule, schedule ad-hoc, 'one-off' tasks, and more.
LWC Episode 3- Component Communication and Aura InteroperabilitySalesforce Developers
Lightning Web Components gives JavaScript developers a web standards-based path to building apps on the Salesforce Lightning Platform.
In the third episode of our five part series on Lightning Web Components, we cover design considerations and compositions of Lightning Web Components.
Introduction to Lightning Web Component SmritiSharan1
Introduction to lightning web component
What is lightning web component?
Difference between aura component and LWC
Why do you go for LWC instead of existing aura components?
Coexistence and interoperability of aura and LWC
Relax is a free, open-source app that provides fine-grained and bulk management of Batch and Scheduled Apex jobs. Join us to learn how to use Relax to mass-schedule a group of jobs, create ordered sequences of jobs that run on schedule, schedule ad-hoc, 'one-off' tasks, and more.
LWC Episode 3- Component Communication and Aura InteroperabilitySalesforce Developers
Lightning Web Components gives JavaScript developers a web standards-based path to building apps on the Salesforce Lightning Platform.
In the third episode of our five part series on Lightning Web Components, we cover design considerations and compositions of Lightning Web Components.
Introduction to Lightning Web Component SmritiSharan1
Introduction to lightning web component
What is lightning web component?
Difference between aura component and LWC
Why do you go for LWC instead of existing aura components?
Coexistence and interoperability of aura and LWC
Any structure expected to stand the test of time and change needs a strong foundation! Software is no exception. Engineering your code to grow in a stable and effective way is critical to your ability to rapidly meet the growing demands of users, new features, technologies, and platform capabilities. Join us to obtain architect-level design patterns for use in your Apex code to keep it well factored, easy to maintain, and in line with platform best practices. You'll follow a Force.com interpretation of Martin Fowler's Enterprise Architecture Application patterns, and the practice of Separation of Concerns.
Platform Events enables a new event-driven architecture for Salesforce focused on events and record changes, rather than full record processing. Join us to learn about Platform Events and what this will mean to the future of integration with Salesforce.
In this exclusive webinar, you'll learn about
- How Platform Events enable real-time integration
- Defining, publishing and subscribing to Platform Events in Salesforce
- How Platform Events work through live demonstrations
Apex Triggers can be your best friend or your worst enemy. When a trigger is firing properly your data is under control and remains sane, but when a trigger doesn't fire properly, your users can be faced with the frustration of exceptions when saving a record, or worse: incorrect data. Join us to learn tips and tricks on how to debug and solve the most complex issues, including: Ambiguous Field Validation, After Insert Activity Errors, and SOQL and Governor Limit Errors. You'll learn the origins of these kinds of advanced trigger issues and gain solutions for avoiding them.
Lightning web components are custom HTML elements built using HTML and modern JavaScript. Lightning Web Components uses core Web Components standards and provides only what’s necessary to perform well in browsers supported by Salesforce.
Lightning Web Components are a JavaScript programming model for building web applications and interfaces that is built on the best of web standards.
Any front-end web developer can get started with LWC and leverage custom elements, and JavaScript APIs to create modern apps and experiences that are fully aware of Salesforce data and processes.
In the fourth episode of our five part series on Lightning Web Components, we show you how static resources and custom JavaScript are used with Lightning Web Components. You’ll learn how to use external APIs in conjunction with Lightning Locker to secure your JavaScript code. And finally, we’ll demonstrate how you can test your Lightning Web Components using Jest.
Apex allows you to build just about any custom solution on the Force.com platform. But what are the common design patterns and associated best practices for Apex development, and how can you leverage these patterns and best practices to avoid reinventing the wheel? Join us to learn some common Force.com design patterns and walk through sample code for best implementing them.
The new queueable Apex feature is not only a great way to make asynchronous calls, it also enables new design patterns that let you dramatically increase the reliability of those calls. In addition, you can detect and recover from a wide variety of errors and exceptions with clarity. Join us to learn how to use queueable Apex to build robust asynchronous code.
Modularizing a project is never easy, a lot of files to move and the dependencies between them is not always what we expect. Then the Dagger configuration used in a single module project often doesn't scale well to a multi module project. Hilt is opinionated about the configuration to use (we don't need to argue anymore about using component dependencies or subcomponents!) and this configuration works perfectly even in a multi module project. In this talk we'll see first an introduction to Hilt and a comparison with Dagger to understand why it's easier to configure. Then we'll see how to leverage it in a multi module project (both in a standard layered architecture and in a Clean Architecture that uses the Dependency Inversion) to improve build speed and code testability. Spoiler alert: using sample apps that include a single feature in the app helps a lot!
Dreamforce 2017 - Advanced Logging Patterns with Platform Eventsandyinthecloud
Platform Events provide a means to send notifications from your code without fear of rollback, making them an ideal means to communicate diagnostics about your code. Apply Platform Events with worked examples to enhance your logging skills while making it easier to diagnose issues without debug logs! The session will include a small library and Lightning Component to monitor log output real time!
Introduction to lightning web component Sudipta Deb ☁
Kitchener, CA Developer Group's online session on "Introduction to Lightning Web Component". In this session, we discussed about basics of web component based development, difference between aura framework & lightning web component, demo.
Any structure expected to stand the test of time and change needs a strong foundation! Software is no exception. Engineering your code to grow in a stable and effective way is critical to your ability to rapidly meet the growing demands of users, new features, technologies, and platform capabilities. Join us to obtain architect-level design patterns for use in your Apex code to keep it well factored, easy to maintain, and in line with platform best practices. You'll follow a Force.com interpretation of Martin Fowler's Enterprise Architecture Application patterns, and the practice of Separation of Concerns.
Platform Events enables a new event-driven architecture for Salesforce focused on events and record changes, rather than full record processing. Join us to learn about Platform Events and what this will mean to the future of integration with Salesforce.
In this exclusive webinar, you'll learn about
- How Platform Events enable real-time integration
- Defining, publishing and subscribing to Platform Events in Salesforce
- How Platform Events work through live demonstrations
Apex Triggers can be your best friend or your worst enemy. When a trigger is firing properly your data is under control and remains sane, but when a trigger doesn't fire properly, your users can be faced with the frustration of exceptions when saving a record, or worse: incorrect data. Join us to learn tips and tricks on how to debug and solve the most complex issues, including: Ambiguous Field Validation, After Insert Activity Errors, and SOQL and Governor Limit Errors. You'll learn the origins of these kinds of advanced trigger issues and gain solutions for avoiding them.
Lightning web components are custom HTML elements built using HTML and modern JavaScript. Lightning Web Components uses core Web Components standards and provides only what’s necessary to perform well in browsers supported by Salesforce.
Lightning Web Components are a JavaScript programming model for building web applications and interfaces that is built on the best of web standards.
Any front-end web developer can get started with LWC and leverage custom elements, and JavaScript APIs to create modern apps and experiences that are fully aware of Salesforce data and processes.
In the fourth episode of our five part series on Lightning Web Components, we show you how static resources and custom JavaScript are used with Lightning Web Components. You’ll learn how to use external APIs in conjunction with Lightning Locker to secure your JavaScript code. And finally, we’ll demonstrate how you can test your Lightning Web Components using Jest.
Apex allows you to build just about any custom solution on the Force.com platform. But what are the common design patterns and associated best practices for Apex development, and how can you leverage these patterns and best practices to avoid reinventing the wheel? Join us to learn some common Force.com design patterns and walk through sample code for best implementing them.
The new queueable Apex feature is not only a great way to make asynchronous calls, it also enables new design patterns that let you dramatically increase the reliability of those calls. In addition, you can detect and recover from a wide variety of errors and exceptions with clarity. Join us to learn how to use queueable Apex to build robust asynchronous code.
Modularizing a project is never easy, a lot of files to move and the dependencies between them is not always what we expect. Then the Dagger configuration used in a single module project often doesn't scale well to a multi module project. Hilt is opinionated about the configuration to use (we don't need to argue anymore about using component dependencies or subcomponents!) and this configuration works perfectly even in a multi module project. In this talk we'll see first an introduction to Hilt and a comparison with Dagger to understand why it's easier to configure. Then we'll see how to leverage it in a multi module project (both in a standard layered architecture and in a Clean Architecture that uses the Dependency Inversion) to improve build speed and code testability. Spoiler alert: using sample apps that include a single feature in the app helps a lot!
Dreamforce 2017 - Advanced Logging Patterns with Platform Eventsandyinthecloud
Platform Events provide a means to send notifications from your code without fear of rollback, making them an ideal means to communicate diagnostics about your code. Apply Platform Events with worked examples to enhance your logging skills while making it easier to diagnose issues without debug logs! The session will include a small library and Lightning Component to monitor log output real time!
Introduction to lightning web component Sudipta Deb ☁
Kitchener, CA Developer Group's online session on "Introduction to Lightning Web Component". In this session, we discussed about basics of web component based development, difference between aura framework & lightning web component, demo.
Introduction to Lightning Web Components (LWC)
Why Lightning Web Component (LWC)
Part 1 - Vanilla HTML5 Web Components
Benefits of Web Component
Pillars of Web Component
Demo of Custom Element and Templating
Part 2 - Lightning Web Component
Hello World
Demo of Lifecycle methods
Call Apex Class
Access Custom Label
Lightning Data Services
Communication between Lightning Component and LWC
Third party Callout from LWC
Introduction to Lightning Web Components (LWC)
Why Lightning Web Component (LWC)
Part 1 - Vanilla HTML5 Web Components
Benefits of Web Component
Pillars of Web Component
Demo of Custom Element and Templating
Part 2 - Lightning Web Component
Hello World
Demo of Lifecycle methods
Call Apex Class
Access Custom Label
Lightning Data Services
Communication between Lightning Component and LWC
Third party Callout from LWC
One of the main hindrances to teams being able to respond rapidly to new features are technical problems resulting from bad coding practices, also known as technical debt. Melissa and Brett will cover Agile tools and practices that help development teams write better code and increase maintainability. Topics that will be covered include:
Pair programming
Automated Unit Testing
Refactoring
Test-Driven Development
Agile Architecture
Neoito — Design patterns and depenedency injectionNeoito
Dependency injection is a software design pattern that allows someone to remove hard-coded dependencies and makes it possible to change them. Dependencies can be injected to the object via the constructor or via defined method or a setter property.
Faiz Mohamed Haneef is currently the CEO and Chief Technology Architect at Neoito. He's a former Architect at Lowe's, Hallmark and Infosys.
Kubernetes at Reddit: An Origin Story - KubeCon NA 2018Gregory Taylor
This session takes the audience through the motivations, the story, and the results of rebasing our infrastructure on Kubernetes. Today, Kubernetes forms the core of our internal Infrastructure "product", which is a paint-by-numbers experience that engineers of all backgrounds make use of.
Presented at KubeCon North America in 2018
Spiritsofts is the best Training Institutes for Workday Integration to expand your skills and knowledge. We Provides the best learning Environment. Obtain all the training by our expert professional which is having working experience from Top IT companies. The Training in is every thing we explained based on real time scenarios, it works which we do in companies.
Symantec - From Early Drupal Adoption to the Latest Drupal InnovationsTag1 Consulting, Inc.
Symantec is the global leader in next-generation cyber security and one of the most recognizable technology brands - their websites must live up to the same stringent standards that consumers and enterprises expect from all Symantec’s products and services. A Fortune 500 company leverages a diverse array of web technologies and platforms to meet their business goals - Drupal integrates well with other systems (including other CMS platforms) and plays an important role in the architecture at Symantec
Join Amy Johnson (Sr. Marketing Manager, Symantec), Kevin Millecam (Co-Founder, BKJ DIgital), and Michael Meyers (Managing Director, Tag1 Consulting) as they discuss why Symantec was an early enterprise adopter of Drupal and have continued to rely on the platform for 10 years - the business case for Drupal in a Fortune 500 Global Enterprise.
They’ll discuss how Drupal fits into the overall ecosystem of Internet technologies at Symantec - when and why they rely on Drupal vs. other platforms, the unique challenges that Symantec and other global enterprises face in managing large websites, a large number of websites, and how to work with partners, agencies, core Drupal contributors, and the Drupal community to ensure success with the Drupal platform:
How does Drupal live up to the needs of a global fortune 500 organization - where and how do you use Drupal, and how does it integrate with other technologies, including other CMS systems (e.g Adobe Experience Manager) while maintaining a seamless end-user experience across sites and technologies?
How do you work with partners & agencies to ensure success across a large organization with many sites, stakeholders and divisions?
How do you manage many Drupal sites, across many Drupal versions? When do you decide to upgrade your Drupal site to a new major version, and why do you continue to choose Drupal?
We’ll highlight our innovative use of technology to meet specific business goals, and integrate, secure, and scale Drupal to meet the needs of a leading Fortune 500 organization:
Builiding next gen sites with cutting edge Decoupled Drupal 8, and Node.js integration
Enabling high traffic sites to effectively utilize caching to maximize performance, while enabling content creators to instantly publish fresh content using D8 cache tags and selective cache clearing
Managing infrastructure as code - enabling many teams across organizations to work together, update infrastructure configurations, making it easier and faster to test & deploy changes, ensuring security through “code reviews” and auditing changes
Infrastructure automation - ensure strict standards & security protocols are enforced, that local development environments, and hosted testing, staging and production maintain consistency
Deploying with extreme speed - what do you do when you can’t sit around waiting for a large number of sites/servers to get updates and changes?
Tutorial Videos: https://www.youtube.com/playlist?list=PLD8nQCAhR3tQ7KXnvIk_v_SLK-Fb2y_k_
Day 1 : Introduction to React, Babel and Webpack
Prerequisites of starting the workshop ( Basic understanding of Node & Express )
What is Virtual DOM?
What is React and why should we use it?
Install and set up React:
a-Using create-react-app
b-From scratch using Babel and Webpack. We will use Webpack Dev Server.
Day 2 : React Basic Concepts
Types of Components: Class-based and Functional based Components
Use of JSX
Parent, Child, and Nested Components
Difference between State and Props
Create and Handle Routes
Component Lifecycle Methods
Create a form and handling form inputs
Use of arrow functions and Spread Operator
Day 3: Advanced Concepts in React
Use of Refs
What are Higher Order Components( HOC )?
How to use HOC
Understanding Context in React
Flutter workshop @ bang saen 2020 on 26-28 Oct 2020 at The 90's Workplace see more example in github repository https://github.com/anoochit/flutter_bangsaen_2020
Droidcon Spain 2016 - The Pragmatic Android Programmer: from hype to realityDaniel Gallego Vico
This presentation shows how to be a pragmatic Android programmer by showing real examples of applications/products developed in BQ attending to three important topics:
- Why and how to implement a pragmatic CLEAN architecture with a custom dependency injection framework and ReactiveX features.
- Why and how to implement unit, integration, view and smoke tests in every CLEAN layer and what tools should be used.
- Why and how to implement pragmatic Continuous
Development/Testing/Integration/Delivery by showing several tricks, plugins and snippets that you could use as a daily basis.
Prepare for Admin Certification
Understand the exam outline and all cover topics at a high level.
Run through some sample questions and how can we solve them quickly.
Sales and Marketing Applications: 12%
Given a scenario, identify the capabilities and implications of the sales process. (for example: sales process, opportunity, path, and forecast impact.)
Given a scenario, apply the appropriate sales productivity features using opportunity tools. (for example: dashboards, lead scoring, Einstein opportunity scoring, and home page assistant.)
Describe the capabilities of lead automation tools and campaign management. (for example: leads, lead convert, lead assignment rules, campaign and campaign members.)
Service and Support Applications: 11%
Describe the capabilities of case management. (for example: case, case assignment rules, and queues.)
Given a scenario, identify how to automate case management. (for example: support process, case auto-response rules, and case escalation.)
Recording: http://bit.ly/lksfvideos
>> Prepare for Admin Certification
Understand the exam outline and all cover topics at a high level.
Run through some sample questions and how can we solve them quickly.
>> Security Model
Understand the Salesforce security model from the Salesforce Administrators' point of view.
Dive into various topics important for Salesforce Admin certification preparation.
Profiles, Roles, Permission Set, Sharing Architecture
Recording: http://bit.ly/lksfvideos
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 3. In this session, we will cover desktop automation along with UI automation.
Topics covered:
UI automation Introduction,
UI automation Sample
Desktop automation flow
Pradeep Chinnala, Senior Consultant Automation Developer @WonderBotz and UiPath MVP
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
When stars align: studies in data quality, knowledge graphs, and machine lear...
Lightning Web Components- Ep 1 - Decorators, Life Cycle Hooks and Compositions
1. Letterkenny, Ireland
Developers Group
Lk_Sf_Devs LkTrailblazers
Welcome to our virtual learning series
Learn Lightning Web Components in 5 Days
Day 2 - Recap + Decorators, Lifecycle hooks
and Compositions
2.
3. Nishant Singh Panwar
Community Group Leader
Salesforce Developer and Consultant
● 6 Years of Salesforce Implementation Experience
● 8x Salesforce Certified - Application Architect
UDAIPUR
Nishant_SP
5. Sahil Batra (Director @ MTX Group Inc.)
Industry Experience
Having 9 year of experience in IT Industry and 6 years in Salesforce
ecosystem.Started my Salesforce career as Developer and have played
various roles like Technical Lead , Technical Architect and Corporate
Trainer.
Professional Highlights
● Manage Salesforce trainings and certifications.
● Work as Technical Architect / Principal Developer on Projects.
● Hold 5 Salesforce Certifications and 1 Google certification.
● Conducted Training in India, US , Australia and UK.
● Trained 500+ freshers and 300+ lateral folks in Salesforce.
● Trained 800+ students and 250+ faculty members.
Email : sahilbatraa@gmail.com
Twitter : sahilbatraa18
6. Topics covered in Session 1
● Introduction to LWC
● Why LWC ?
● 2014 Web stack
● 2019 Web Stack
● LWC Framework
● Aura & LWC
● Environment Setup
● LWC Bundle
● Build your First Component
● Applying CSS to Components
● Data Binding
● Conditional Rendering
● Loop & Iteration
7. Decorators : @track
Demo 3 & 6 : Reactive Private Properties
● Used with Private Property.
● Used if property is Object or an Array.
● All Primitive Type properties are reactive by Default.
● Data Types
○ Primitive Values - No @track Required
○ Objects - require @track
○ Arrays - require @track
9. Decorators : @api
Demo 7 : Public Properties Mutation Demo
● Objects passed to components are read only.
● To trigger a mutation use events.
● Use primitive values for public properties
○ Define data shape and no complex documentation is required.
○ Standard HTML element only accept primitive values for attributes.
10. Public Boolean Properties
Demo 8 : Public Boolean Properties
● By Default value is false.
● Including a attribute value means passing true.
11. Use getter & setter to modify data
Demo 9 : getter setter properties
● Modify property value
● No need to declare a property
● If you write a setter for public property,you must also write a getter.
● Best practice is to annotate getter with @api. Do not annotate both.
12. Call Method on Child Component
Demo 10 : Public Methods
● To expose public method expose it with @api
● Parent component can call method to communicate down the hierarchy.
● querySelector() - return first element which matches selector
● querySelectorAll() - return an array of DOM elements.
● Do not use id as HTML template renders id may transformed into global unique
values
13. Using Slots
Demo 11 : Slots Demo
● Use to pass markup into components
● Similar to facets in Aura
● We have named and unnamed slots
● Do not include more than one unnamed slot
14. Component Lifecycle
Component
Requested
Constructor is
called
Update Public
Properties
Has public
properties?
Dom Inserted
Connected
Callback
DOM
Rendered
Has Child
Components?
Yes
Yes
Rendered
callback on
Child
Rendered
callback on
Parent
Parent
Removed from
DOM
disconnectedcallback
on Parent
Child removed
from DOM
disconnectedcallback
on Child
15. Component Lifecycle
● Constructor
○ Fires when component instance is created.
○ DOM manipulation cannot be done as DOM is not inserted yet.
○ Attribute assignment cannot be done.
○ Public properties are also not available
16. Component Lifecycle
● connectedCallback()
○ Fires when DOM is inserted.
○ You cannot access child elements as it flows from parent to child.
○ Fire more than once during lifecycle if we reorder component.
○ Mostly used for adding up event listeners.
○ DOM manipulation cannot be done as it is not rendered yet.
○ Attribute value assignment can be done here.
○ Flows from Parent to Child.
17. Component Lifecycle
● renderedCallback()
○ Called on child component first and than on to parent.
○ Use to perform logic after component has finished rendering phase.
○ Is called many times and we use some logic to execute only once.
○ Can create infinite loops.
○ Do not update public properties & tracked properties in renderedCallback()
20. Coming Up
● 14 May - Component communication using events.
bit.ly/lwcday3
● 21 May - Working with Salesforce data including LDS.
bit.ly/lwcday4
● 28 May - Navigation Services, Aura with LWC interoperability & extra topics.
bit.ly/lwcday5
RSVP