Questions tagged as 'angular-material'

1
answer

How do I use a font-awesome icon with the Knob button?

In the Angular Material documentation there are examples of how to use icons in buttons through an SVG icon. / p> Example: <md-button class="md-icon-button md-primary" aria-label="Settings"> <md-icon md-svg-icon="img/icons/m...
asked by 14.02.2017 / 16:19
1
answer

Why is this call inserted automatically into the body of HTML?

In an app I'm using the javascript libraries: jQuery, Angular, Angular Material, and Moment. Totalizing I have the following calls in my file: <script src="vendor/jquery/jquery-3.1.1.js" type="text/javascript"></script><script s...
asked by 31.10.2016 / 21:20
2
answers

Close button in md-select

I'm using the angular material, and I need a close button when I make the select selection, it just closes the box if I click outside, below has an example: HTML: <div ng-controller="MyCtrl" layout layout-align="center center"> &l...
asked by 31.10.2016 / 19:43
1
answer

AngularJs-Material how to change the md-datepicker Portuguese language

I'm trying to change the language of md-datepicker to Portuguese because the days of the week and months are in English, so it gets confusing to the user ... Is there any way to change this language? Format the fields for Portuguese? <divfle...
asked by 25.10.2017 / 14:04
2
answers

How to leave a fixed div with the scroll?

I'm using AngularJs and Angular Material and I need to make a div stay fixed but I have no idea how to do it, my structure is as follows: <div class="page"> <md-toolbar layout="row"> <md-button h...
asked by 10.11.2016 / 12:12
1
answer

Is it possible to manipulate a template from an abstract route, in other routes, dynamically?

At angular I created an abstract route using $ stateProvider. This route is where you have the side navigation menu and two toolbar, one with some buttons, and another one of search. I created an abstract route with the idea of reusing som...
asked by 15.12.2016 / 11:37
1
answer

Angularjs Controller does not work right

I am giving a basic study on how to create screens using Angularjs and Material, everything going well until I need the controller, it seems that $ scope is not working, I put a console.log at the beginning of the controller and it prints the te...
asked by 11.04.2016 / 01:29
2
answers

error: Uncaught (in promise): Error: Value must be an array in multiple-selection mode

Doing a compareWith, for the purpose of when I edit, the dropdowns may already be filled with the assigned values. By doing this, I get this error:    Uncaught (in promise): Error: Value must be an array in   multiple-selection mode. I ho...
asked by 01.08.2018 / 21:27
4
answers

Can not read property 'name' of undefined

Gentlemen, I'm making this mistake while running my registration form ..    ERROR TypeError: Can not read property 'name' of undefined       at forms.js: 3282       at forms.js: 3222       at Array.forEach ()       at FormGroup.push .. / node...
asked by 11.09.2018 / 21:14
1
answer

The element is generated with one attribute and its CSS with another attribute

I created the toolbar component with the following decorator: @Component({ selector: 'app-toolbar', templateUrl: './toolbar.component.html', styleUrls: ['./toolbar.component.scss'] }) Notice that the component is using th...
asked by 25.01.2018 / 20:47