Git Product home page Git Product logo

angular's Introduction

Angular

Setup

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
npm install -g @angular/cli

Criando novos projetos

Este gera o projeto com o recurso de módulos

ng new project-name --standalone=false --minimal=true --routing=true --style=scss --ssr=true --directory .

Este não gera o projeto com o recurso de módulos

ng new project-name --standalone=true --minimal=true --routing=true --style=scss --ssr=true --directory .
ng analytics disable

Gerando componentes dentro de uma pasta especifica, para melhorar a organização e otimizar as rotas de navegação com base em um objetivo claro

ng generate component site/home --inline-template=false --inline-style=false --style=scss
ng generate component site/about --inline-template=false --inline-style=false --style=scss
ng generate component site/services --inline-template=false --inline-style=false --style=scss
ng generate component site/contact --inline-template=false --inline-style=false --style=scss

Gerando um layout padronizado para todas as páginas

ng generate component site/layout --inline-template=false --inline-style=false --style=scss
ng generate component signup --inline-template=false --inline-style=false --style=scss
ng generate component signin --inline-template=false --inline-style=false --style=scss
ng generate component home --inline-template=false --inline-style=false --style=scss
ng generate component account --inline-template=false --inline-style=false --style=scss
ng serve --open

Angular Material (Mobile)

Step 1:

ng add @angular/material
npm install --save @angular/material @angular/cdk @angular/animations

Step 2:

import { NgModule } from '@angular/core';
import { BrowserModule, provideClientHydration } from '@angular/platform-browser';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';

import {BrowserAnimationsModule} from '@angular/platform-browser/animations';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    BrowserAnimationsModule
  ],
  providers: [
    provideClientHydration()
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }

Step 3: Gestures (Gestos) - by HammerJS

npm install --save hammerjs

PrimeNG

Step 1:

npm install primeng primeicons primeflex --save

Step 2:

Na pasta principal do projeto, dentro do arquivo 'angular.json' (linha 56)

"styles": [
  "src/styles.scss",
  "node_modules/primeng/resources/themes/lara-light-blue/theme.css",
  "node_modules/primeng/resources/primeng.min.css"
],

Step 3:

Na pasta 'src', no arquivo 'styles.scss'

@import "primeng/resources/themes/lara-light-blue/theme.css";
@import "primeng/resources/primeng.css";
@import "primeicons/primeicons.css";

Rodando localmente, aberto para o público local

Access same network

ng serve --host 0.0.0.0 --port 4200 --disable-host-check
ng serve --host 192.168.15.110 --port 4200 --disable-host-check

angular's People

Contributors

jeanbezerra avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.