What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-03-05 05:30:21
como atualizar a versão do angular
npm update angular-cli -g Add solution -
TypeScript 2022-03-04 02:10:01
Warning: Flex Layout loaded on the server without FlexLayoutServerModule
//app.server.module.ts import {NgModule} from '@angular/core'; import {FlexLayoutServerModule} from '@angular/flex-layout/server'; @NgModule({ imports: [ ... other imports here FlexLayoutServerModule, ] }) export class AppServerModule {} //a... Add solution -
TypeScript 2022-03-03 01:55:14
angular currency pipe pt-br as variable
//I solved this way: //app.module.ts import { LOCALE_ID } from '@angular/core'; import localePt from '@angular/common/locales/pt'; import {registerLocaleData} from '@angular/common'; registerLocaleData(localePt) providers: [{ provide: LOCALE_ID, ... Add solution -
Other 2022-03-02 10:45:10
button routing
<button type="button" class="btn btn-primary-outline pull-right" (click)="btnClick();"><i class="fa fa-plus"></i> Add</button> // myComponent.component.ts file import { Router } from '@... Add solution -
Javascript 2022-03-02 09:40:08
nangular make window available
import { Inject } from '@angular/core'; import { DOCUMENT } from '@angular/common'; export class MyClass { constructor(@Inject(DOCUMENT) private document: Document) { this.window = this.document.defaultView; } check() { console.log(this.... Add solution -
TypeScript 2022-03-01 23:35:28
create and use constants in angularjs
// Storing a single constant value var app = angular.module('myApp', []); app.constant('appName', 'My App'); // Now we inject our constant value into a test controller app.controller('TestCtrl', ['appName', function TestCtrl(appName) { console.log(a... Add solution -
Other 2022-03-01 05:30:16
angular/http deprecated
Before version 4.3, the @angular/http module was used for making HTTP requests in Angular applications. The Angular team has now deprecated Http in version 5. The HttpClient API from @angular/common/http package that shipped in version 4.3 is now reco... Add solution
Best helpers
Ranking is empty