I'm currently developing a custom section in the back office of a specific website. Everything is alright, except that weird thing that keeps happening since the very first build & run.
Normally when you click on a node, the content renders on the right side with the help of ".html" files while Angular does it's own magic.
Now the problem is that every content which renders dynamically (i.e checkbox values and text-content parsed from json) becomes visible right after I move my mouse cursor over the HTML panel. This happens to all of my nodes.
Also I couldn't find anything on Google, and neither of my co-partners have experienced something like this in the past.
The problem still persists. When I refresh page, my console says "page loading completed" and html "Before mouse-over.". When I move my cursor on the pane, "Before mouse-over" changes to the desired string.
I mean this is crazy, right? I even tried to create a new project and revamp it.
It happens nothing unfortunately... that was just some var of mine.
I believe it's a bug. I guess we'll have to wait for Umbraco to update its Angular.
If you don't mind, there are still some other things to try ...
Especially the structure for tabs looks different from what I would expect.
Since you are using umb-tab-view, I assume that you do need tabs.
But with what you provided so far, it looks like you are using a kind of tab control without tabs...
As a general example, the following structure with tabs:
Strange things in my custom section
Hello,
I'm currently developing a custom section in the back office of a specific website. Everything is alright, except that weird thing that keeps happening since the very first build & run.
Normally when you click on a node, the content renders on the right side with the help of ".html" files while Angular does it's own magic.
Now the problem is that every content which renders dynamically (i.e checkbox values and text-content parsed from json) becomes visible right after I move my mouse cursor over the HTML panel. This happens to all of my nodes.
Also I couldn't find anything on Google, and neither of my co-partners have experienced something like this in the past.
Peace
Hi Burichan,
can you show an example of the issue or in a short movie? Because now its quite hard to see what the problem is.
/Michaël
Here you are!
Thanks Michaël :)
Can you post the controller js file code?
/Michaël
This is my ng-controller function that lives inside my script tags.
This is my html:
I also modified the controller to alert me about page loading in console:
The problem still persists. When I refresh page, my console says "page loading completed" and html "Before mouse-over.". When I move my cursor on the pane, "Before mouse-over" changes to the desired string.
I mean this is crazy, right? I even tried to create a new project and revamp it.
Still same results.
c_c
In your ng-controller, you start with setting $scope.loaded to true:
What happens if you change this to false?
It happens nothing unfortunately... that was just some var of mine. I believe it's a bug. I guess we'll have to wait for Umbraco to update its Angular.
Another thing that looks suspicious is the usage of the
It doesn't have a closing tag.
Second, I am not sure if having the ng-controller="" ... code in ump-panel tag would work. Maybe you need a surrounding form or div tag for that.
It has a closing tag, I forgot to include it when I did copy/paste.
Also enclosed my html within a div tag where I put my ng-controller. Still nothing :(
Ok,
If you don't mind, there are still some other things to try ...
Especially the structure for tabs looks different from what I would expect. Since you are using umb-tab-view, I assume that you do need tabs. But with what you provided so far, it looks like you are using a kind of tab control without tabs...
As a general example, the following structure with tabs:
In your case, I do not see any tabs defined in the umb-header, like
Did you define tabs in your $scope? Something like:
Further, in your umb-tab-view, there are no umb-tab tags. I guess that you need these ...
Thanks Micha. That solved it... I was missing some of the tabs structure!
I'm a newbie in AngularJS! ^_^
is working on a reply...