You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Terrific version 3.0.0 and an unknown version of generator-nitro and client-side handlebars templates.
I found a "bug" (don't know whether to determine this as a bug or not) if you register a module after the application has been started. We've had the following case:
There is a module called "Tag" which can be inserted with client-side templating into a container. So the application starts on page load, but there is no "Tag" module markup inside the page, so the module doesn't get registerd (which is also logical).
Afterwards, I've inserted the markup of a single tag, which looks like this:
And now I am registering my module like this (schematically):
// ....varmarkup=T.Tpl.tagaction.render({/* data source */})var$tag=$container.append(markup);// T.Application is globally available as `App`vartModule=App.registerModule($tag[0],'Tag',['action'])tModule.start();
There's an error in the console now, which says, that resolve is not a function, so I have to wrap the resolve call into an if to check whether the resolve is a function or not. I think if you call the start method, it will make a direct call to the defined start method inside the module, right? If this would be case, you should write it down in the docs under chapter manual registration.
Additional Content
The module is created with the registerModule method, but there is no data-t-id attribute or something similar.
Thanks for your response!
The text was updated successfully, but these errors were encountered:
Using Terrific version
3.0.0
and an unknown version ofgenerator-nitro
and client-side handlebars templates.I found a "bug" (don't know whether to determine this as a bug or not) if you register a module after the application has been started. We've had the following case:
There is a module called "Tag" which can be inserted with client-side templating into a container. So the application starts on page load, but there is no "Tag" module markup inside the page, so the module doesn't get registerd (which is also logical).
Afterwards, I've inserted the markup of a single tag, which looks like this:
And my basic T.Module.Tag and T.Module.Tag.Action code looks like this (default empty module):
And now I am registering my module like this (schematically):
There's an error in the console now, which says, that resolve is not a function, so I have to wrap the resolve call into an if to check whether the
resolve
is a function or not. I think if you call the start method, it will make a direct call to the defined start method inside the module, right? If this would be case, you should write it down in the docs under chapter manual registration.Additional Content
The module is created with the
registerModule
method, but there is nodata-t-id
attribute or something similar.Thanks for your response!
The text was updated successfully, but these errors were encountered: