{"action":"closed","issue":{"url":"https://api.github.com/repos/LaxarJS/laxar/issues/153","labels_url":"https://api.github.com/repos/LaxarJS/laxar/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/LaxarJS/laxar/issues/153/comments","events_url":"https://api.github.com/repos/LaxarJS/laxar/issues/153/events","html_url":"https://github.com/LaxarJS/laxar/issues/153","id":58753443,"number":153,"title":"portal: angular-adapter: simplify widget module/controller naming","user":{"login":"x1B","id":327904,"avatar_url":"https://avatars.githubusercontent.com/u/327904?v=3","gravatar_id":"","url":"https://api.github.com/users/x1B","html_url":"https://github.com/x1B","followers_url":"https://api.github.com/users/x1B/followers","following_url":"https://api.github.com/users/x1B/following{/other_user}","gists_url":"https://api.github.com/users/x1B/gists{/gist_id}","starred_url":"https://api.github.com/users/x1B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x1B/subscriptions","organizations_url":"https://api.github.com/users/x1B/orgs","repos_url":"https://api.github.com/users/x1B/repos","events_url":"https://api.github.com/users/x1B/events{/privacy}","received_events_url":"https://api.github.com/users/x1B/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LaxarJS/laxar/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"x1B","id":327904,"avatar_url":"https://avatars.githubusercontent.com/u/327904?v=3","gravatar_id":"","url":"https://api.github.com/users/x1B","html_url":"https://github.com/x1B","followers_url":"https://api.github.com/users/x1B/followers","following_url":"https://api.github.com/users/x1B/following{/other_user}","gists_url":"https://api.github.com/users/x1B/gists{/gist_id}","starred_url":"https://api.github.com/users/x1B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x1B/subscriptions","organizations_url":"https://api.github.com/users/x1B/orgs","repos_url":"https://api.github.com/users/x1B/repos","events_url":"https://api.github.com/users/x1B/events{/privacy}","received_events_url":"https://api.github.com/users/x1B/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-02-24T15:22:21Z","updated_at":"2015-02-25T13:23:11Z","closed_at":"2015-02-25T13:23:11Z","body":"Currently, the widgets and activities (and their templates), and the LaxarJS portal, use the following convention for naming AngularJS widget modules and controllers:\r\n\r\n* Module: `widgets.somecategory.MyWidget`\r\n* Controller: `widgets.somecategory.MyWidget.Controller`\r\n\r\nIf we allow ourselves to drop the category (because in the end it is not used for namespacing anyway), AngularJS would expect the following:\r\n\r\n* Module: `myWidget`\r\n* Controller: `MyWidgetController`\r\n\r\nThis removes a lot of warnings in AngularJS Batarang, and is also a bit simpler and less boilerplaty.\r\nNamespacing will be done through prefixes (e.g. AxPopupWidget).\r\n\r\n_Important:_ this is not supposed to be a breaking change. The old module names should remain to be supported; eventually we will add a deprecation warning.\r\n\r\n_Addition:_ For now, widgets still have to live in a subfolder (a category) under the laxar-path-widgets (includes/widgets/ by default). It is planned to lift that restriction as well."}}