Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-es6

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-es6 - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

app/utils/createdirectivefactory.js

@@ -23,3 +23,3 @@ export default function createDirectiveFactory(Directive) {

instance.controller.$inject = controllerOrg.$inject || [];
instance.controller.$inject = controllerOrg.$inject || ['$scope', '$element'];
}

@@ -26,0 +26,0 @@

{
"name": "angular-es6",
"description": "ECMAScript 6 boilerplate for angular source code and webpack",
"version": "1.0.2",
"version": "1.0.3",
"private": false,

@@ -6,0 +6,0 @@ "author": {

@@ -9,8 +9,59 @@ # Angular ECMAScript 6 boilerplate

- npm install
```sh
npm install angular-es6
```
## Examples
Here is multiple examples:
### Directive
```js
export default class NiceDirective {
constructor($http) {
this.$http = $http;
this.template = '<div>{{computeName('NICE')}}</div>';
this.restrict = 'E';
this.scope = {
name: '='
};
}
link($scope, element, attrs) {
this.$scope = $scope;
$scope.computeName = suffix => computeName(suffix);
}
computeName(suffix = '') {
const $scope = this.$scope;
return 'Mr.' + $scope.name + ' ' + suffix;
}
}
NiceDirective.$inject = ['$http'];
```
### Controller
```js
export default class MainController {
constructor($scope) {
this.$scope = $scope;
}
}
MainController.$inject = ['$scope'];
```
## Run build for production
- npm run build
```sh
npm run build
```

@@ -20,3 +71,4 @@

- npm run dev
```sh
npm run dev
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc