question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

V8: Can't use dialogService in backoffice angular controller

See original GitHub issue

So I’m building a custom grid editor to be able to select a node in the content tree and have it be displayed as a clickable button that will redirect to user to the selected node.

However, I’ve barely gotten started, and it’s already crashing. It doesn’t seem like I can inject the “dialogService” into my angular-controller. At first I didn’t think I could inject any service, but I tried the “assetsService” and that works fine!

Reproduction

Create a custom grid editor plugin, complete with an angular controller and try to inject the dialogService the normal way.

Console error

Error: "[$injector:unpr] Unknown provider: dialogServiceProvider <- dialogService <- rexel.grid.contentcontroller
https://errors.angularjs.org/1.7.5/$injector/unpr?p0=dialogServiceProvider%20%3C-%20dialogService%20%3C-%20rexel.grid.contentcontroller"

Have you guys removed the dialogService or what?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Shazwazzacommented, Apr 1, 2019

I totally understand, we are working on it! There’s a very large amount of documentation that needs writing/updating/etc… we will be rolling out new api docs hopefully within the next few weeks.

0reactions
Questocommented, Mar 29, 2019

Thanks for the help @Shazwazza and @abjerner . I had already made posts about this at our.umbraco but got nothing.

I’ll use the overlayservice instead, I downloaded the source code and will look at that for the time being. If you ask me, this should get a bump in prio, it’s annoying having to scour the internet only to find out you have to download the source code to check.

To clarify, I don’t mind looking at the source code, but the very least you can do is add something on the official docs that lets people know that they should look at the source code instead.

Sorry if I sound bitter!

Have a nice day!

Read more comments on GitHub >

github_iconTop Results From Across the Web

unable to inject dialogservice in angular controller
I'm building a custom grid editor and need to use the dialogService to open up, well, a dialog, so that the user can...
Read more >
angularjs - Unable to inject service in the controller
I did try adding the service as a dependency to the app module as per below, but still giving an error. angular.module('youtube-favorites', ['ui ......
Read more >
Upgrading Umbraco Packages for V8 (Whilst Maintaining ...
I'd used a number of Umbraco provided angularjs components like umbraco-pane, umbraco-control-group to render the package user interface in a ...
Read more >
"Cannot read property 'dialogService' of undefined" ...
I'm trying to open a dialog box with data retrieved from google API client ( gapi ). Everything works just fine until I...
Read more >
Why the controller property won't display in the view?
My problem is that in the register controller i have a greeting property as follows: 'use strict'; var app = angular.module('firstApp',[]); ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found