@cerebral/angularjs
Advanced tools
Comparing version 4.0.0-1521140905511 to 4.0.0-1525724201307
@@ -56,3 +56,5 @@ 'use strict'; | ||
Object.assign(_this.props, nextProps); | ||
Object.assign(_this.ctrl, _this.view.getProps(nextProps, false)); | ||
_this.view.render(nextProps, function (componentProps) { | ||
Object.assign(_this.ctrl, componentProps); | ||
}, false); | ||
_this.scope.safeApply(); | ||
@@ -70,3 +72,5 @@ }; | ||
}; | ||
Object.assign(_this.ctrl, _this.view.getProps(_this.props, false)); | ||
_this.view.render(_this.props, function (componentProps) { | ||
Object.assign(_this.ctrl, componentProps); | ||
}, false); | ||
}; | ||
@@ -78,4 +82,8 @@ } | ||
value: function onUpdate(stateChanges, force) { | ||
var _this2 = this; | ||
this.view.updateFromState(stateChanges, this.props, force); | ||
Object.assign(this.ctrl, this.view.getProps(this.props, false)); | ||
this.view.render(this.props, function (componentProps) { | ||
Object.assign(_this2.ctrl, componentProps); | ||
}, false); | ||
this.scope.safeApply(); | ||
@@ -82,0 +90,0 @@ } |
{ | ||
"name": "@cerebral/angularjs", | ||
"version": "4.0.0-1521140905511", | ||
"version": "4.0.0-1525724201307", | ||
"description": "Angularjs view for Cerebral", | ||
@@ -17,3 +17,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"cerebral": "^5.0.0-1521140905511" | ||
"cerebral": "^5.0.0-1525724201307" | ||
}, | ||
@@ -20,0 +20,0 @@ "scripts": { |
@@ -10,2 +10,3 @@ # @cerebral/angularjs | ||
## Config | ||
```js | ||
@@ -39,2 +40,3 @@ import angular from 'angular' | ||
## connect | ||
```js | ||
@@ -69,2 +71,3 @@ import angular from 'angular' | ||
You can call connect in the following ways: | ||
```js | ||
@@ -71,0 +74,0 @@ connect(dependencies) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19307
174
76
9