What is the equivalent of ngShow and ngHide in Angular 2+?

The hidden property can be used for that See also https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden issues hidden has some issues though because it can conflict with CSS for the display property. See how some in Plunker example doesn’t get hidden because it has a style set. (This might behave differently in other browsers – I tested with Chrome 50) workaround You can fix it by adding To a … Read more

ng serve does not work

The key is to have both global and local Angular-cli versions the same. Let’s say we want to fixate it to eg. 1.0.0-beta.15. So you can try to fixate the version in npm install -g [email protected] and in your package.json fixate it to the same version: “angular-cli”: “1.0.0-beta.15”. Then run npm install –save-dev. Currently Angular CLI can be found on NPM under @angular/cli instead of angular-cli. Here are links … Read more

Where to place/find the systemjs.config.js file in an angularJS2 project?

You need to create a “systemjs.config.js” file and load it from index.html, like a regular script: Make sure you also include System.JS before the config script: The following script loads the first module: By default (according to your systemjs.config.js), SystemJS will look for app.js or app/main.js. In your systemjs.config.js file, you want to map the … Read more

formSelect() method in materialize does’nt work in angular 6 inputs

That’s because you have imported jquery like this: try this instead: The reason it should work is when you are importing $ from jquery it looks for formSelect() method in jquery method but it’s a materialize.js method. when you declare $ as an any your code compiles successfully and now because you’ve added jquery and materialize.js to your scripts in your angular.json in the application run it recognizes .formSelect() on $

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)