Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't using with Routing #379

Open
ngaongao opened this issue Jan 6, 2023 · 0 comments
Open

Can't using with Routing #379

ngaongao opened this issue Jan 6, 2023 · 0 comments

Comments

@ngaongao
Copy link

ngaongao commented Jan 6, 2023

Hi Guys?

Help me! I can't using with angular-route

var app = angular.module("FileManagerApp", ["ngRoute"]);
app.config(function($routeProvider) {
  $routeProvider
  .when("/", {
    template : "<h1>Main</h1><p>Click on the links to change this content</p>"
  })
  .when("/banana", {
    template : "<h1>Banana</h1><p>Bananas contain around 75% water.</p>"
  })
  .when("/tomato", {
    template : "<h1>Tomato</h1><p>Tomatoes contain around 95% water.</p>"
  });
});
app.config(['fileManagerConfigProvider', function (config) {
    var defaults = config.$get();
    config.set({
      appName: 'angular-filemanager',
      listUrl: 'listing-response-example.json',
      pickCallback: function(item) {
        var msg = 'Picked %s "%s" for external use'
          .replace('%s', item.type)
          .replace('%s', item.fullPath());
        window.alert(msg);
      },

      allowedActions: angular.extend(defaults.allowedActions, {
        pickFiles: false,
        pickFolders: false,
      }),
    });
  }]);

Error: [$injector:modulerr]

Thank all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant