Introduction
As we already know ZK used to generate all html content within 'redraw' function of a ZK Widget, this is a little bit (?) hard to maintain and customize dom structure and style of component.
This article describe how to create ZK Component with AngularJS Directive so you can use a pure HTML template to generate dom elements of ZK Component and has some advantages:
1. Easier to maintain.
2. Easier to customize.
And also some drawbacks (part of them has workaround):
1. Need to load html template via several ajax call.
Workaround: You can load all templates at once,
for more information please refer to
AngularJS: load all templates in one file or AngularJS Merge Template
2. Will blink while rerender, you can use a fake dom to avoid blinking but this may affect the client side performance.
3. Has issue of dynamically insert and compile complex dom elements so need to rerender if dynamically add children.
Note:
1. This is just a POC done in a short time, probably not well organized and has some unknown issues.
2. I am not familiar with AngularJS so this POC may contains bad practice.
Pre-request
AngularJS Create Components
ZK Component Development Tutorial: Getting Started
ZK CDT: Fire Event to Server to Create a SelectableTextNote
Result
Online demo
http://screencast.com/t/nlLsNdbV8A
Description:
The concept is simple.
In AngularJS, a directive which support pure html template is a function that returns an Object Literal, and registered with a specific name (see Creating Custom Directives).
Both of them -- the name and the function -- can be declared at any places.
e.g. inside the Javascript of ZK Widget.
So we can specify Angular Tag (ngTag) and Angular Template Url (ngTemplateUrl) to each ZK Component and do below:
In ZK Component:
* Server Side:
** Make sure that each templateUrl maps to different tag.
* Client Side:
** Output ngTag in redraw function.
** Store component to zk.ngcomponents in redraw function.
** Register Angular Directive with ngTag.
In Angular Directive
* Use ngTemplateUrl as templateUrl in directive.
* Store $scope, $compile and controller to $element in controller function of directive.
* Bind ZK Widget with Angular Objects above in link function of directive.
Then we can use AngularJS Directive with pure HTML Template then control ZK Widget from AngularJS Directive and vice versa.
See
NgComp.java#fixTemplateMapping
NgComp.js#redraw
tabs.js#registerTemplate
zacomponents.js#addComponent
zacomponents.js#storeNgObjects
zacomponents.js#directive
zacomponents.js#bindng_
for more information.
Program Introduction
Testing zul page
index.zul
Testing Composer
TestComposer.java
AngularJS Library
angular.min.js
Bootstrap3 CSS Library
bootstrap.min.css
Utils for AngularJS ZK Widget
zacomponents.js
Basic APIs of AngularJS ZK Widget
NgComp.js
The Folder Contains All Default Templates
templates
Basic Java Class for AngularJS ZK Component
NgComp.java
Others:
Please refer to the full project below
Download
Full project at github
Demo Flash (click View Raw to download)
ZK has released the official support for AngularJS. http://www.zkoss.org/zk-angular-demo/
ReplyDeleteYes, hope it will get better and better.
DeleteGreat Article
DeleteB.Tech Final Year Projects for CSE in Angularjs
Project Centers in Chennai
JavaScript Training in Chennai
JavaScript Training in Chennai
Very Nice Post really expalined good information and Please keep updating us..... Thanks
ReplyDeleteJust wish to say your article is as astounding. The clearness in your
ReplyDeletesubmit is just excellent and i can suppose you’re knowledgeable in this subject.
Nice post . Thanks for the shearing valuable information. I really fiend this type blog. Special thanks to writer.
ReplyDeleteHire Angularjs Developer
AngularJS Development Company
Thanks for providing good information,Thanks for your sharing.Angularjs Online Training
ReplyDelete
ReplyDeleteThank you.Well it was nice post and very helpful information on AngularJS5 Online Training Hyderabad
Great post. I found very useful info from this post. Thank you very much.
ReplyDeleteAngularjs Developer
cute blog with colourful images, really I appreciate your works. All the articles are very interesting to read Website Design Company in Bangalore | Web Designing Company in Bangalore | Web Developers in Bangalore Bangalore
ReplyDeleteThe blog was absolutely fantastic! Lot of great information which can be helpful in some or the other way. Keep updating the blog, looking forward for more contents...Great job, keep it up..Website Design Company in Bangalore | Web Design Companies in Bangalore | Website Design Companies in Bangalore
ReplyDeleteThis is an best post. It is Really very informative concept.I like it and help me to development very well.Thanks alot for this brief explanation and very nice information.Angular Js Course HYDERABAD
ReplyDeleteExcellent ! I am truly impressed that there is so much about this subject that has been revealed and you did it so nicely
ReplyDeleteAnika Digital Media
seo services
web design development
graphic design
Thanks
thank your valuable content.we are very thankful to you.one of the recommended blog.which is very useful to new learners and professionals.content is very useful for hadoop learners
ReplyDeleteBest Spring Classroom Training Institute
Best Devops Classroom Training Institute
Best Corejava Classroom Training Institute
Best Advanced Classroom Training Institute
Best Hadoop Training Institute
Best PHP Training Institute
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
ReplyDeleteSalesforce Training in Chennai | Certification | Online Course | Salesforce Training in Bangalore | Certification | Online Course | Salesforce Training in Hyderabad | Certification | Online Course | Salesforce Training in Pune | Certification | Online Course | Salesforce Online Training | Salesforce Training
ReplyDeleteBlog commenting : Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
devops online training
best angularjs online training
top angularjs online training
Amazing article. Your blog helped me to improve myself in many ways thanks for sharing this kind of wonderful informative blogs in live. I have bookmarked more article from this website. Such a nice blog you are providing
ReplyDeleteJava Training in Chennai
Java Training in Velachery
Java Training in Tambaram
Java Training in Porur
Java Training in OMR
Java Training in Annanagar
Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
ReplyDeleteAngularJS online training
best AngularJS online training
top AngularJS online training
Web Development Company In India
ReplyDeleteI am really happy to say it’s an interesting post to read . I learn new information from your article , you are doing a great job . Keep it up
ReplyDeleteDevops Training in USA
Hadoop Training in Hyderabad
Python Training in Hyderabad
Thank you for sharing this useful article with us. This blog is a very helpful to me in future. Keep sharing informative articles with us.
ReplyDeletehttps://www.ahmedabadcomputereducation.com/course/php-training-course/
This is my first time visit to your blog and I am very interested in the articles that you serve. Provide enough knowledge for me. Thank you for sharing useful and don't forget, keep sharing useful info:
ReplyDeleteData Science Training in Gurgaon
Bigdata Hadoop Training in Gurgaon
Spark Training in Gurgaon
Machine Learning Training in Gurgaon
Thank you for sharing this useful article with us. This blog is a very helpful to me in future. Keep sharing informative articles with us.
ReplyDeletehttps://www.paygonline.site/
Thank you for sharing this useful article. This blog is a very helpful to me. Keep sharing informative articles with us.
ReplyDeletehttps://www.france-collectivites.fr/
Great sources for knowledge. Thank you for sharing this helpful article. It is very useful for me.
ReplyDeletehttps://www.ahmedabadcomputereducation.com/course/laravel-training-course/
Awesome blog for knowledge. Thank you for sharing this useful article. This blog is a very helpful to me. Keep sharing this type informative articles with us.
ReplyDeletehttps://www.france-collectivites.fr/
Thank you for sharing this useful article with us. This blog is a very helpful to me. Keep sharing informative articles with us.
ReplyDeletehttps://www.sdsfin.in/services/project-finance-consultants-in-ahmedabad/
Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
ReplyDeleteBanking and Finance App Development Company
Seo company in Varanasi, India : Best SEO Companies in Varanasi, India: Hire Kashi Digital Agency, best SEO Agency in varanasi, india, who Can Boost Your SEO Ranking, guaranteed SEO Services; Free SEO Analysis.
ReplyDeleteBest Website Designing company in Varanasi, India : Web Design Companies in varanasi We design amazing website designing, development and maintenance services running from start-ups to the huge players
Wordpress Development Company Varanasi, India : Wordpress development Company In varanasi, india: Kashi Digital Agency is one of the Best wordpress developer companies in varanasi, india. Ranked among the Top website designing agencies in varanasi, india. wordpress website designing Company.
E-commerce Website designing company varanasi, India : Ecommerce website designing company in Varanasi, India: Kashi Digital Agency is one of the Best Shopping Ecommerce website designing agency in Varanasi, India, which provides you the right services.
It's a very informative blog and I am exactly looking for this type of blog. Thank you for sharing this beautiful blog.
ReplyDeletehttps://superurecoat.com/titanium-iso-propoxide/
This information is very useful for me and other too. Thank you for sharing this type blog with us.
ReplyDeletebest spine doctor in ahmedabad
spine specialist in ahmedabad
pain medicine specialist
best spine hospital in ahmedabad
Thank you for sharing valuable information with us. Exactly, I am looking for this types of blog.
ReplyDeleteLoan Against Property
Loan Against Property in Vadodara
Loan Against Property in Ahmedabad
Loan Against Property Companies
Loan Against Property Interest Rate
learn something new
ReplyDeleteThank you for the great information. Keep Sharing it!
ReplyDeletehttps://saroitapes.com/
Thanks for sharing informative article.
ReplyDeletehttps://web30india.com/
Thank you so much for sharing all this wonderful information !!!! It is so appreciated!! You have good humor in your blogs. So much helpful and easy to read!
ReplyDeleteExcellent Article. Thank you for sharing!
ReplyDeletehttps://www.ahmedabadcomputereducation.com/
https://www.ahmedabadcomputereducation.com/course/live-project-training-in-asp-net/
https://www.ahmedabadcomputereducation.com/course/live-project-training-in-ios/
https://www.ahmedabadcomputereducation.com/course/live-project-training-in-java/
https://www.ahmedabadcomputereducation.com/course/live-project-training-in-android/
https://www.ahmedabadcomputereducation.com/course/live-project-training-in-php/
https://www.ahmedabadcomputereducation.com/course/live-project-training-in-python/
Excellent Article. Kepp Sharing with us!
ReplyDeletePHP Web Development
Web Application Development
Cloud Web Application
Web Application Security Expertise
Front End Development & UX Design
Multi Platform Integration Services
Hire PHP Programmer
Android App Development Company
ReplyDeleteFabulous article for reading. Keep sharing it!
ReplyDeleteBest Mobile App Development Company in UK | Mobile App Development Services
adanaescort01.com - adiyamanescortxx.com - afyonarackiralama.net - aksarayescort.net - antalyaoyunpark.com - aydinescortkiz.com - balikesirescortlar.com - batmanescortlar.com - bitlisescortlar.com - burdurescortlar.com - bursamalaysias.com - diyarbakirambar.com - edirnedespor.com - erzurumyolkosusu.com - eskisehirescortlari.com - gaziantepekspres.org - gebzeescortkiz.com - giresunmaraton.com - hataykoleji.com - ispartakpss.com - karabukteknik.com - kastamonuajans.net - kayserivalisi.com - kilisescort.com - kocaeliescortlar.com - konyaescortlar.com - kutahyaizemlak.com - malatyadataksi.com - manisaescortlar.com - marasatasoyemlak.com - mardinfanatik.com - mersinmoda.com - muglaapart.net - nigdeyapi.com - orduescortt.com - osmaniyeyorum.com - sakaryanur.com - samsunescortlar.com - siirteyatirim.com - sincanoto.com - tekirdagescortlar.com - tokatforum.com - usakbasin.com - vanescortilan.com - yalovadaemlak.com - yozgattanal.com - sanliurfadayim.com - zonguldakescort.com
ReplyDeleteabinitio training
ReplyDeletespark training
scala training
azure devops training
tableau training
sap sd training
sap bw on hana training
cami avizesi - no deposit bonus forex 2021 - takipçi satın al - takipçi satın al - takipçi satın al - takipcialdim.com/tiktok-takipci-satin-al/ - instagram beğeni satın al - instagram beğeni satın al - btcturk - tiktok izlenme satın al - sms onay - youtube izlenme satın al - no deposit bonus forex 2021 - tiktok jeton hilesi - tiktok beğeni satın al - binance - takipçi satın al - uc satın al - sms onay - sms onay - tiktok takipçi satın al - tiktok beğeni satın al - twitter takipçi satın al - trend topic satın al - youtube abone satın al - instagram beğeni satın al - tiktok beğeni satın al - twitter takipçi satın al - trend topic satın al - youtube abone satın al - takipcialdim.com/instagram-begeni-satin-al/ - tiktok takipçi satın al - tiktok beğeni satın al - twitter takipçi satın al - trend topic satın al - youtube abone satın al - instagram beğeni satın al - perde modelleri - instagram takipçi satın al - takipçi satın al - instagram takipçi satın al - betboo
ReplyDeletesap sd online training
ReplyDeletesap bw on hana online training
windows admin online training
app v online training
osb online training
oracle scm online training
ReplyDeleteI am really happy to say it’s an interesting post to read . I learn new information from your article , you are doing a great job . Keep it up
Devops Training in Hyderabad
Hadoop Training in Hyderabad
Python Training in Hyderabad
Tableau Training in Hyderabad
Selenium Training in Hyderabad
python online training
ReplyDeletepython training
instagram takipçi satın al
ReplyDeleteinstagram takipçi satın al
takipçi satın al
takipçi satın al
instagram takipçi satın al
takipçi satın al
instagram takipçi satın al
aşk kitapları
tiktok takipçi satın al
instagram beğeni satın al
youtube abone satın al
twitter takipçi satın al
tiktok beğeni satın al
tiktok izlenme satın al
twitter takipçi satın al
tiktok takipçi satın al
youtube abone satın al
tiktok beğeni satın al
instagram beğeni satın al
trend topic satın al
trend topic satın al
youtube abone satın al
beğeni satın al
tiktok izlenme satın al
sms onay
youtube izlenme satın al
tiktok beğeni satın al
sms onay
sms onay
perde modelleri
instagram takipçi satın al
takipçi satın al
tiktok jeton hilesi
pubg uc satın al
sultanbet
marsbahis
betboo
betboo
betboo
film izle - sex hikayeleri - sex hikayesi - erotik hikaye -
ReplyDeleteankara escort - bornova escort - alsancak escort - çeşme escort - izmir escort - smm panel - instagram takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - haber - instagram takipçi hilesi - instagram takipçi satın al - izmir evden eve nakliyat - seocu - instagram takipçi hilesi - instagram takipçi satın al - izmir escort - takipçi satın al - instagram takipçi satın al - tiktok takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - instagram takibi bırakanlar - buca escort -
karşıyaka escort - instagram takipçi hilesi
takipçi satın al
ReplyDeletetakipçi satın al
takipçi satın al
marsbahis
ReplyDeletebetboo
sultanbet
marsbahis
betboo
sultanbet
I am impressed by the information that you have on this blog. It shows how well you understand this subject.
ReplyDeletedata scientist training in malaysia
Great post.I'm glad to see people are still interested of Article.Thank you for an interesting read........
ReplyDeleteHire Remote Angular js Developer in India
virtual event platform A successful virtual networking event is one that is designed with the outcome in mind. Understanding your audience and their motivation for engaging provides a useful starting point for deciding how you will run your virtual networking event. website to sell concert tickets, zoom invitation email template and what do you need to become an event planner
ReplyDeleteVery Nice Blog…Thanks for sharing this information with us. Here am sharing some information about training institute.
ReplyDeletedigital transformation services by NGS
I am really happy to say it’s an amazing post to read. I learn new information from your article, you are doing a great job. Keep it up
ReplyDeleteHire AngularJS Developer
Great tips and very easy to understand. This will definitely be very useful for me when I get a chance to start my blog.
ReplyDeletedata science course in malaysia
ReplyDeleteInfycle Technologies, the best software training institute in Chennai offers the best AWS training in Chennai for tech professionals. Apart from the AWS Course, other courses such as Oracle, Java, Hadoop, Digital Marketing, Selenium, Big Data Android, and iOS Development, DevOps and Azure will also be trained with 100% hands-on training. Dial 7502633633 to get more info and a free demo.
Thanks for the informative and helpful post, obviously in your blog everything is good..
ReplyDeletecyber security course
Android Mobile App Development in Ahmedabad
ReplyDeleteWeb 3.0 India is the most trusted Web3 Blockchain Development and NFT Development Company in USA. We also provides ICO, STO development for cryptocurrency.
https://web30india.com/
seo fiyatları
ReplyDeletesaç ekimi
dedektör
instagram takipçi satın al
ankara evden eve nakliyat
fantezi iç giyim
sosyal medya yönetimi
mobil ödeme bozdurma
kripto para nasıl alınır
instagram beğeni satın al
ReplyDeleteyurtdışı kargo
seo fiyatları
saç ekimi
dedektör
fantazi iç giyim
sosyal medya yönetimi
farmasi üyelik
mobil ödeme bozdurma
bitcoin nasıl alınır
ReplyDeletetiktok jeton hilesi
youtube abone satın al
gate io güvenilir mi
referans kimliÄŸi nedir
tiktok takipçi satın al
bitcoin nasıl alınır
mobil ödeme bozdurma
mobil ödeme bozdurma
EN SON ÇIKAN PERDE MODELLERİ
ReplyDeleteMobil Onay
mobil ödeme bozdurma
Nft Nasil Alınır
ankara evden eve nakliyat
trafik sigortası
dedektör
Kurma website
aşk kitapları
smm panel
ReplyDeletesmm panel
iş ilanları
instagram takipçi satın al
hirdavatciburada.com
WWW.BEYAZESYATEKNİKSERVİSİ.COM.TR
Servis
tiktok jeton hilesi
Thanks for sharing...very informative.
ReplyDeleteAre you interested in launching an On Demand Flower Delivery App? The App Ideas is leading web and Mobile App development. We provide the best IT Services at best rates. Contact us now!
This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work.
ReplyDeleteHow much does it cost to develop an On Demand Service App? The App Ideas is leading web and Mobile App development. We provide the best IT Services at best rates. Contact us now!
ca colleges in hyderabad
ReplyDeletemec inter colleges in hyderabad
cec inter colleges in hyderabad
Cma Colleges in hyderabad
degree colleges in hyderabad
cs colleges in hyderabad
Bandicam Keygen isn't bundled, unlike other applications recording packs, by default, using the recorder, but is offered at a lower cost Bandicam Serial Key
ReplyDeletePortraiture, free and safe download. Portraiture latest version: A portrait plugin for Photoshop. Portraiture is a photography program Portraiture Plugin For Photoshop CS6 Free Download Crack
ReplyDeleteWe appreciate you sharing this informative post with us. Continue providing us with helpful content.
ReplyDeletehttps://www.ownuxglobal.com/