291291 </ span >
292292 </ h3 >
293293 < p >
294- many of the official components, at this time, require some boiler plate code, mainly small dependencies.
294+ Many of the official components, at this time, require some boiler plate code, mainly small dependencies.
295295 </ p >
296296 < p >
297297 < code >
307307 </ p >
308308
309309 < p >
310- when the ?hdr parameter is used, after component initialisation is complete, a user function is called. This function can can be named
310+ When the ?hdr parameter is used, after component initialisation is complete, a user function is called. This function can can be named
311311 any of these names :
312312 </ p >
313313 < ul >
338338 </ ul >
339339
340340 < p >
341- here is a simple example that includes the
341+ Here is a simple example that includes the
342342 < a href ='list/web-console/web-console.html '>
343343 web-console
344344 < span class =link-domain >
@@ -354,12 +354,12 @@ <h3>
354354
355355 < div >
356356 < p >
357- the code for a component, note
357+ The code for a component, note :
358358 </ p >
359359
360360 < ul >
361361 < li >
362- the function that defines the module is wrapped in parentheses () making it a function expression,
362+ The function that defines the module is wrapped in parentheses () making it a function expression,
363363 this is required.
364364 < code >
365365
@@ -369,27 +369,27 @@ <h3>
369369 </ code >
370370 </ li >
371371 < li >
372- the arguments to the function ({mod,host})
372+ The arguments to the function ({mod,host}) :
373373
374374 < ul >
375375 < li >
376376 < b >
377377 mod
378378 </ b >
379379 < br >
380- the modules own namespaced component module reference
380+ The modules own namespaced component module reference.
381381 </ li >
382382 < li >
383383 < b >
384384 host
385385 </ b >
386386 < br >
387- the root element of the component
387+ The root element of the component.
388388 </ li >
389389 </ ul >
390390 </ li >
391391 < li >
392- the function defines an object that is returned, note : the variable name < b > obj</ b > , is purely an internal reference.
392+ The function defines an object that is returned, note : the variable name < b > obj</ b > , is purely an internal reference.
393393 < code >
394394
395395 var obj = {
405405 </ code >
406406 </ li >
407407 < li >
408- any methods and properties that are exposed to the public are added as properties to the obj
408+ Any methods and properties that are exposed to the public are added as properties to the obj :
409409 < br >
410410 < code >
411411
422422
423423
424424 < p >
425- Skeletal function definition
425+ Skeletal function definition :
426426 </ p >
427427
428428 < code-src src ='ex/define-component.js '> </ code-src >
432432
433433 < div >
434434 < p >
435- a typical component / module lifecycle might have
435+ A typical component / module lifecycle might have :
436436 </ p >
437437
438438 < ul >
@@ -444,15 +444,15 @@ <h3>
444444 This is where local depencies can be passed to the component
445445 < br >
446446 They fundamentally should not be relying on global state to receive their local depencies, this method is not always
447- needed
447+ needed.
448448 </ li >
449449 < li >
450450 < b >
451451 init
452452 </ b >
453453 < br >
454454 This is the first entry point to the component, it is an asynchronous function that allows the component to check
455- that it has everything it needs to run, including access to the network to load resources it may need
455+ that it has everything it needs to run, including access to the network to load resources it may need.
456456 </ li >
457457 < li >
458458 < b >
465465 </ ul >
466466
467467 < p >
468- components are also effectively namespaced so they are free to load any other components that they may need without having to
468+ Components are also effectively namespaced so they are free to load any other components that they may need without having to
469469 worry that there will ever be a clash of variables or tag names.
470470 </ p >
471471 </ div >
@@ -474,15 +474,15 @@ <h3>
474474 < div style ='margin-top:50px;margin-bottom:50px '>
475475
476476 < p >
477- view the full list of components
477+ View the full list of components
478478 < br >
479479 < a href ='html-components-list/html-components-list.html '>
480480 html component list
481481 </ a >
482482 </ p >
483483
484484 < p >
485- view the
485+ View the
486486 < b >
487487 component.js
488488 </ b >
498498
499499 < div >
500500 < p >
501- here is a very simple component
501+ Here is a very simple component
502502 </ p >
503503 < web-editor id =ex2 component fullsize mode =html src ='https://libs.ext-code.com/html/demo/demo-example/demo-example.html '> </ web-editor >
504504 < p >
0 commit comments