Angular.js problem

77 views
Skip to first unread message

耿昌宇

unread,
Feb 5, 2016, 1:15:28 AM2/5/16
to TiddlyWikiDev
I was trying to build a mindmap plugin with the FEX kityminder-editor. But the first step I met a big problem.

Since kityminder-editor is based on angular.js, I wrote a startup module to load required js files and create the ng-app DOM tree. But this gives a $injector:modulerr. See the attached files and screenshot.

Could somebody please help me out.

Thanks.

mindmap.init.js
files.zip
plugin.info
jsError.png

PMario

unread,
Feb 5, 2016, 4:27:50 AM2/5/16
to TiddlyWikiDev
Hi,

tiddlywiki is a framework, similar to angular.js, but with a different focus and its own very specific expectations. angular is made and optimised for developers to create client / server apps. Tiddlywiki is made for users, as a single page client side app, with no server needed. ... So you will face a lot of conflicting problems. eg: TW redraws the DOM at any given time. The same is true for angular. .. They don't know about each other. I doubt, it will be simple, if not impossible, to let them play nice together.

TW has one major expectation. .... Everything is a tiddler! That means, that if you change the tiddler store, TW refresh functions will redraw the dom, if it is effected.

IMO you should use a mind map library, that is free of a framework dependency. ... Do you know tiddlymap.org (The link needs several seconds to load. There is no splash screen yet :)

just my 2 cents.

have fun!
mario

Felix Küppers

unread,
Feb 5, 2016, 4:41:42 AM2/5/16
to tiddly...@googlegroups.com
Hi Mario


IMO you should use a mind map library, that is free of a framework dependency. ... Do you know tiddlymap.org (The link needs several seconds to load. There is no splash screen yet :)

Thanks for the heads up @Mario. I really have to work on a splash screen PR; I'll do one hopefully before middle of March. Also I discovered I was still using an old 5.1.10-prerelease at tiddlymap.org – after upgrading, the boot felt faster.

@耿昌宇

I really suggest you try TiddlyMap before working on your own solution. It is more a concept mapping than a mind map tool, but you should be able to use it for both tasks.

-Felix


just my 2 cents.

have fun!
mario
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/9e800e58-c312-4772-a070-8e923d8b0798%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages