Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
adapted syntax to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Feuerbach committed Feb 2, 2017
1 parent 0fa9e4e commit 7ac5852
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion plugins/deviceContact/deviceContact.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
name: 'Contact',
icon: 'envelope-o',
priority: 1000,
templateUrl: ':::PLUGIN_PATH:::/deviceContact.html',
templateUrl: ':::PLUGIN_PATH:::/views/deviceContact.html',
controller: 'deviceContactCtrl'
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
c8yViewsProvider.when('/device/:deviceId', {
name: 'Real-Time Events',
icon: 'rss',
templateUrl: ':::PLUGIN_PATH:::/deviceEventsRealTime.html',
templateUrl: ':::PLUGIN_PATH:::/views/deviceEventsRealTime.html',
controller: 'deviceEventsRealTimeCtrl'
});

Expand Down
2 changes: 1 addition & 1 deletion plugins/myplugin/cumulocity.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Hello world plugin testing",
"description": "Simple hello world plugin.",
"ngModules": [
"helloapp.hello"
"myapp.hello"
],
"js": [
"hello.module.js",
Expand Down
4 changes: 2 additions & 2 deletions plugins/myplugin/hello.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';

angular
.module('helloapp.hello')
.module('myapp.hello')
.config(configure);

configure.$inject = [
Expand All @@ -22,7 +22,7 @@
});

c8yViewsProvider.when('/hello', { // when the path "/hello" is accessed ...
templateUrl: ':::PLUGIN_PATH:::/hello.html', // ... display our html file "hello.html" inside the "views" folder of our plugin (the plugin's folder is represented using the magic string ```:::PLUGIN_PATH:::```, which is replaced by the actual path during the build process)
templateUrl: ':::PLUGIN_PATH:::/views/hello.html', // ... display our html file "hello.html" inside the "views" folder of our plugin (the plugin's folder is represented using the magic string ```:::PLUGIN_PATH:::```, which is replaced by the actual path during the build process)
controller: 'HelloController', // ... use "HelloController" as controller
controllerAs: 'vm'
});
Expand Down
2 changes: 1 addition & 1 deletion plugins/myplugin/hello.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';

angular
.module('helloapp.hello')
.module('myapp.hello')
.controller('HelloController', HelloController);

function HelloController() {
Expand Down
2 changes: 1 addition & 1 deletion plugins/myplugin/hello.module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function () {
'use strict';

angular.module('helloapp.hello', []);
angular.module('myapp.hello', []);
}());
File renamed without changes.

0 comments on commit 7ac5852

Please sign in to comment.