material2-app | Simple app that consumes Angular Material 2 components
kandi X-RAY | material2-app Summary
kandi X-RAY | material2-app Summary
Simple app that consumes Angular Material 2 components
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of material2-app
material2-app Key Features
material2-app Examples and Code Snippets
Community Discussions
Trending Discussions on material2-app
QUESTION
I have been using this seed project to as the basis for my new Angular 2 project. Unfortunately, it does not come configured to use scss, so I have to add that configuration myself.
I am using Angular Material so am importing a default theme in my app component like this:
...ANSWER
Answered 2017-Jan-07 at 00:19You are only passing the css
files, and not the scss
files, to to-string-loader
, so require('./material2-app-theme.scss') is not returning a string
Change the scss
loader to...
QUESTION
I'm using ng2-tel-input in my angular App, so far it was working perfectly but suddenly I started getting an error
...ANSWER
Answered 2019-Feb-01 at 11:40I have solved this problem by deleting the repo from local and again did checkout it from Bitbucket, ran npm i
and problem disappeared. This is strange because I multiple time pulled code from the repo and deleted then reinstalled node modules. I am accepting my answer for now. I don't understand what caused the problem and what I did is not a proper solution so if in case someone can explain or provide a solution I would choose that as the answer.
QUESTION
I installed angular/material2 using npm install --save @angular/material
. I am using @angular/cli.
After angular/material
is installed, the material folder which is under the node_modules/@angular
folder, does not contain folders like button
, button-toggle
, card
etc...that means I can't use the widgets in my app.
To solve this problem I did:
...ANSWER
Answered 2017-Jun-23 at 13:55From their Getting Started page...
Step 3: Import the component modulesImport the NgModule for each component you want to use:
QUESTION
I'm trying to add material design to an angular app without any luck.
I installed material design, added all the modules to the app.moduel.ts
file but the components look very bad.
I get this message: Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide:
https://material.angular.io/guide/theming
I added the link to the head of the index.html file
but for some reason I get a Status Code:404 Not Found
. I tried to add the css files to assets, which didn't work.
It's a little weird, because if you check the sample app for material design on github there is no link to any theme css file.
https://github.com/jelbourn/material2-app/blob/master/src/index.html
http://localhost:4200/node_modules/@angular/material/prebuilt-themes/indigo-pink.css
My index.html file looks like this:
...ANSWER
Answered 2017-Jun-23 at 09:18It's really depend on how you're structuring and setup your app, but related to Status Code:404 Not Found
error I think it's because relative path from index.html to "node_modules/@angular/material/prebuilt-themes/indigo-pink.css"
cannot be found, and appending some ../../
would help.
Reference to theming guide documentation:
Alternatively, you can just reference the file directly. This would look something like:
The actual path will depend on your server setup.
QUESTION
Im playing around with angular 4 and material 2. I want to make multiple theme, which I can toggle.
I've read the tutorial on angularjs and also read about themes on material 2. I also checked the example at https://material2-app.firebaseapp.com/ But they only use one component and I want to apply the same theme to everyone. And I have no Idea on how to make this possible. :S
app.component.ts
...ANSWER
Answered 2017-Apr-20 at 00:22If I understand well, you want to change the whole theme of your app when you click on "Toggle theme" button ?
If so, you should take a look at this link : https://material.angular.io/guide/theming#multiple-themes
And particularly this part :
QUESTION
I am working with angular/material2 and I am trying to get a dark theme.
Following the doc at https://material.angular.io/guide/theming I defined my custom theme.scss
as follows:
ANSWER
Answered 2017-Feb-01 at 14:21Definitely I was wrong !!! Dark theme works ... but only when inside a md- selector such as md-card. Setting a body background color can be done only with css.
QUESTION
How would you to put md-toolbar
on top of md-sidenav
similar like https://inbox.google.com/u/0/?pli=1 using material2?
Here is an example of using md-sidenav
https://github.com/jelbourn/material2-app md-sidenav
with angular material2 but it is not behaving the way I want.
How would you would modify this example the way md-toolbar
would stay on top of md-sidenav
same way as in https://inbox.google.com/u/0/?pli=1
P.S There is a similar question md-sidenav toggle() is on top of the md-toolbar but the solution is not compatible with angular2 maerial2
...ANSWER
Answered 2017-Jan-21 at 12:08This works for me, if I did understand the question. Just put toolbar in a separate element (not inside sidenav container) and also remove fullscreen directive from md-sidenav-container
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install material2-app
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page