In upgrading to 0.10.7 from 0.10.5 - one of the things I see missing in the latest builds is the ability to create an inputType - or just a different way that I can't seem to find to replace.
Whereas before we had something like:
angular.inputType('textAreaList', function(){
this.$parseModel = function(){
if (this.$modelValue) {
this.$viewValue = this.$modelValue.join('\n');
}
};
this.$parseView = function(){
this.$modelValue = this.$viewValue.split('\n');
};
});
are we supposed to define these as directives somehow now?
Thanks.
--
Robert B. Weeks
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
Yes - I have looked at these in my local build docs - but that isn't really helping in re-creating the input type we created below so can use:
<input type="textAreaList" ..../>
Before you could define them - I assume it is a directive based now (like below) - but still having issues being able to make it behave/work like before. I just must be missing something. Brain going to much trying to re-do all of our 0.10.5 apps up to latest release has been a bit daunting to say the least. :)
Thanks for the response.
> Take a look at:
> http://ci.angularjs.org/job/angular.js-angular-master/232/artifact/build/pkg/0.10.7-64912069/docs-0.10.7-64912069/api/angular.module.ng.$compileProvider.directive.input
> and:
> http://ci.angularjs.org/job/angular.js-angular-master/232/artifact/build/pkg/0.10.7-64912069/docs-0.10.7-64912069/api/angular.module.ng.$compileProvider.directive
>
> On 7 March 2012 21:50, Robert B. Weeks <vai...@mac.com> wrote:
> Hello -
>
> In upgrading to 0.10.7 from 0.10.5 - one of the things I see missing in the latest builds is the ability to create an inputType - or just a different way that I can't seem to find to replace.
>
> Whereas before we had something like:
>
> angular.inputType('textAreaList', function(){
> this.$parseModel = function(){
> if (this.$modelValue) {
> this.$viewValue = this.$modelValue.join('\n');
> }
> };
> this.$parseView = function(){
> this.$modelValue = this.$viewValue.split('\n');
> };
> });
>
> are we supposed to define these as directives somehow now?
>
> Thanks.
>
> --
> Robert B. Weeks
>
--
Robert B. Weeks
Hey -
Oh no - forms are changing a lot again? As big of a change as the 0.10.x form change? Ugh - we might be stuck keeping 0.10.5 if so (well with this and the compiler question I have in here as well). :|
But as for input types not being a good solution - we use them and they actually did what we needed - so there are no way to mimic this? Validation had nothing to do with why we created them - but for example - the one described in my mail enabled us to create dynamic JSON arrays out of textarea inputs - how would you suggest we accomplish this in the new way?
--
Robert B. Weeks
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
> I think allowing ng-list to specify a separator is a valid feature, here is a pull request:
> https://github.com/angular/angular.js/pull/786
>
> V.
I think this would be a great addition. Would allow like we are using it for - a textarea that will take each line (\n) and append an array/list.
Thanks!
--
Robert B. Weeks
hi, i am new to Angularjs. i need to know about splitting a string. The scenario is that i have the back end data in json-LD form. One of the value that i want to bind with the input is stored as **"href": "/articles/1328196047309"**. Now what i want is to show just the part after ":" (colon). how can i do it in the view?if i need to make a filter how would that work?
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/3FTJTp-brmA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.