Closed bobbybobby closed 7 years ago
Please add to the import to the example in readme.
// Import do operator:
import 'rxjs/add/operator/do';
// In one of your application NgModules
import {RlTagInputModule} from 'angular2-tag-input';
@NgModule({
imports: [
RlTagInputModule
]
})
export class YourModule {}
// In one of your component templates
<rl-tag-input [(ngModel)]="tags" placeholder="Testing placeholder"></rl-tag-input>
I will be fixing this in a new release today or tomorrow.
Should be fixed in latest release.
I run into a problem regarding RxJS operator
do
. I put a<rl-tag-input></rl-tag-input>
component in my template, and loading the page gave me the following error.I fixed this by adding
import 'rxjs/add/operator/do';
to therxjs-operators.ts
file that is imported by my application. I'm new to Typescript and angular2 and I'm a little bit lost when it comes to all this import stuff. However, do you think it would be possible for the import to be done within theRlTagInputModule
module, so it becomes transparent when using the module ?