Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem creating a sm-select component #81

Closed
fgtdr opened this issue Sep 12, 2016 · 4 comments
Closed

Problem creating a sm-select component #81

fgtdr opened this issue Sep 12, 2016 · 4 comments

Comments

@fgtdr
Copy link

fgtdr commented Sep 12, 2016

Hi vladotesanovic,

I have a problem, actually 2 problems:

  1. Do not use English well, I apologize for writing.
  2. I'm using sm-select component, but does not work as expected. Do not load the placeholder. The label attribute does not work.

In this plunker I try to show my problem:
http://plnkr.co/edit/TS4nQomysX2s3PZ6za3U?p=preview

Another thing that intrigues me, By modifying the sample files, this is not reflected in the demo app. Why?

Thanks for your help...
Excellent work!

@fgtdr
Copy link
Author

fgtdr commented Sep 12, 2016

Regarding the demo,

In the file package.json, I changed the:

"scripts": {
"demo:lint": "tslint -c ./tslint.json 'demo/app//*.ts'",
"library:lint": "tslint -c ./tslint.json 'ng-semantic/
/*.ts'",
"demo:server": "node server.js",
"typings": "typings install",
"tsc:w": "tsc -w -p './demo'",
"start": "tsc && concurrently "tsc -w" "npm run tsc:w" "lite-server -c dev.config.js" ",
"library:bundle": "tsc && rm -rf bundles && node library.builder.js",
"demo:bundle": "tsc -p './demo' && node demo.builder.js"
},

by

"scripts": {
"demo:lint": "tslint -c ./tslint.json 'demo/app//*.ts'",
"library:lint": "tslint -c ./tslint.json 'ng-semantic/
/*.ts'",
"demo:server": "node server.js",
"typings": "typings install",
"tsc:w": "tsc -w -p ./demo",
"start": "tsc && concurrently "tsc -w" "npm run tsc:w" "lite-server -c dev.config.js" ",
"library:bundle": "tsc && rm -rf bundles && node library.builder.js",
"demo:bundle": "tsc -p ./demo && node demo.builder.js"
},

@nimaen
Copy link
Contributor

nimaen commented Sep 12, 2016

Hi,

You have an error because you're using ReactiveFormsModule directives & components in a module that does not import them.
To sum up, add the ReactiveFormsModule in your main module in this case.
See your plunker updated : http://plnkr.co/edit/P0tS5xCW1D9fpo8yhpxN?p=preview

Is your problem solved now ?

@fgtdr
Copy link
Author

fgtdr commented Sep 12, 2016

Thank nimaen...

@fgtdr fgtdr closed this as completed Sep 12, 2016
@nimaen
Copy link
Contributor

nimaen commented Sep 12, 2016

You're welcome 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants